Skip to content
Snippets Groups Projects
Commit 88fb618c authored by Romain de Laage's avatar Romain de Laage Committed by Yassine Doghri
Browse files

build(docker): forward server name to the PHP application

fixes #246
parent 7213ed29
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,7 @@ http { ...@@ -61,6 +61,7 @@ http {
location / { location / {
fastcgi_param SCRIPT_FILENAME /opt/castopod/public/index.php; fastcgi_param SCRIPT_FILENAME /opt/castopod/public/index.php;
include fastcgi_params; include fastcgi_params;
fastcgi_param SERVER_NAME $host;
fastcgi_index index.php; fastcgi_index index.php;
fastcgi_pass php-handler; fastcgi_pass php-handler;
} }
...@@ -69,6 +70,7 @@ http { ...@@ -69,6 +70,7 @@ http {
try_files $uri =404; try_files $uri =404;
fastcgi_param SCRIPT_FILENAME /opt/castopod/public/$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /opt/castopod/public/$fastcgi_script_name;
include fastcgi_params; include fastcgi_params;
fastcgi_param SERVER_NAME $host;
fastcgi_index index.php; fastcgi_index index.php;
fastcgi_pass php-handler; fastcgi_pass php-handler;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment