Skip to content

Commit

Permalink
Use proper $host for FastCGI SERVER_NAME param. (#1552)
Browse files Browse the repository at this point in the history
  • Loading branch information
strarsis authored Nov 23, 2024
1 parent 9a45aab commit 0aeed2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/wordpress-setup/templates/wordpress-site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ server {

{% block fastcgi_basic -%}
include fastcgi_params;
fastcgi_param SERVER_NAME $host;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_pass unix:/var/run/php-fpm-wordpress.sock;
Expand Down

0 comments on commit 0aeed2a

Please sign in to comment.