mirror of
https://github.com/cloudpanel-io/vhost-templates.git
synced 2026-05-18 08:23:31 +08:00
.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#{"rootDirectory":"public","phpVersion":"8.3","varnishCacheSettings":{"cacheLifetime":"604800","controller":"generic","excludes":["^\/admin\/"],"excludedParams":["__SID","noCache"]}}
|
#{"rootDirectory":"public","phpVersion":"8.4","varnishCacheSettings":{"cacheLifetime":"604800","controller":"generic","excludes":["^\/admin\/"],"excludedParams":["__SID","noCache"]}}
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
@@ -27,6 +27,8 @@ server {
|
|||||||
|
|
||||||
{{settings}}
|
{{settings}}
|
||||||
|
|
||||||
|
include /etc/nginx/global_settings;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
{{varnish_proxy_pass}}
|
{{varnish_proxy_pass}}
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
@@ -63,8 +65,6 @@ server {
|
|||||||
{{server_name}}
|
{{server_name}}
|
||||||
{{root}}
|
{{root}}
|
||||||
|
|
||||||
include /etc/nginx/global_settings;
|
|
||||||
|
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#{"rootDirectory":"public","phpVersion":"8.3","varnishCacheSettings":{"cacheLifetime":"604800","controller":"generic","excludes":["^\/admin\/"],"excludedParams":["__SID","noCache"]}}
|
#{"rootDirectory":"public","phpVersion":"8.4","varnishCacheSettings":{"cacheLifetime":"604800","controller":"generic","excludes":["^\/admin\/"],"excludedParams":["__SID","noCache"]}}
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
Reference in New Issue
Block a user