m
This commit is contained in:
@@ -11,7 +11,7 @@ server {
|
|||||||
|
|
||||||
index index.php;
|
index index.php;
|
||||||
#try_files $uri $uri/ =404;
|
#try_files $uri $uri/ =404;
|
||||||
try_files $uri $uri/ /index.php?$args;
|
#try_files $uri $uri/ /index.php?$args;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/zinomedia.de/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/zinomedia.de/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/zinomedia.de/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/zinomedia.de/privkey.pem;
|
||||||
@@ -29,7 +29,7 @@ server {
|
|||||||
resolver 127.0.0.11;
|
resolver 127.0.0.11;
|
||||||
set $upstream "zinomedia-wordpress:80";
|
set $upstream "zinomedia-wordpress:80";
|
||||||
|
|
||||||
#try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
proxy_set_header X-Forwarded-Server $host;
|
proxy_set_header X-Forwarded-Server $host;
|
||||||
@@ -40,21 +40,6 @@ server {
|
|||||||
|
|
||||||
proxy_pass http://$upstream;
|
proxy_pass http://$upstream;
|
||||||
}
|
}
|
||||||
|
|
||||||
# location ~ [^/]\.php(/|$) {
|
|
||||||
# root /usr/share/nginx/html/zinomedia.de;
|
|
||||||
# fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
|
||||||
# if (!-f $document_root$fastcgi_script_name) {
|
|
||||||
# return 404;
|
|
||||||
# }
|
|
||||||
|
|
||||||
# include fastcgi_params;
|
|
||||||
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
# fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
||||||
# fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
|
|
||||||
# fastcgi_pass zinomedia-wordpress:9000;
|
|
||||||
# fastcgi_index index.php;
|
|
||||||
# }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|||||||
Reference in New Issue
Block a user