Commit 81b66bab authored by omega8cc's avatar omega8cc

Nginx: Add missing variables in subdirectory config template.

parent 9391a997
......@@ -28,6 +28,8 @@ if (!$satellite_mode && $server->satellite_mode) {
<?php endif; ?>
#######################################################
set $main_site_name "<?php print $this->uri; ?>";
###
### Use the main site name if available, instead of
### potentially virtual server_name when alias is set
......@@ -181,6 +183,7 @@ location ^~ /<?php print $subdir; ?>/cdn/farfuture/ {
fastcgi_param HTTP_HOST <?php print $subdir; ?>.$host;
fastcgi_param RAW_HOST $host;
fastcgi_param SITE_SUBDIR <?php print $subdir; ?>;
fastcgi_param MAIN_SITE_NAME <?php print $this->uri; ?>;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_index index.php;
......@@ -558,6 +561,7 @@ location ^~ /<?php print $subdir; ?>/cdn/farfuture/ {
fastcgi_param HTTP_HOST <?php print $subdir; ?>.$host;
fastcgi_param RAW_HOST $host;
fastcgi_param SITE_SUBDIR <?php print $subdir; ?>;
fastcgi_param MAIN_SITE_NAME <?php print $this->uri; ?>;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_index index.php;
......@@ -741,6 +745,7 @@ location ^~ /<?php print $subdir; ?>/cdn/farfuture/ {
fastcgi_param HTTP_HOST <?php print $subdir; ?>.$host;
fastcgi_param RAW_HOST $host;
fastcgi_param SITE_SUBDIR <?php print $subdir; ?>;
fastcgi_param MAIN_SITE_NAME <?php print $this->uri; ?>;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_index index.php;
......@@ -814,6 +819,7 @@ location ^~ /<?php print $subdir; ?>/cdn/farfuture/ {
fastcgi_param HTTP_HOST <?php print $subdir; ?>.$host;
fastcgi_param RAW_HOST $host;
fastcgi_param SITE_SUBDIR <?php print $subdir; ?>;
fastcgi_param MAIN_SITE_NAME <?php print $this->uri; ?>;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_index index.php;
......@@ -955,6 +961,7 @@ location @allowupdate_<?php print $subdir; ?> {
fastcgi_param HTTP_HOST <?php print $subdir; ?>.$host;
fastcgi_param RAW_HOST $host;
fastcgi_param SITE_SUBDIR <?php print $subdir; ?>;
fastcgi_param MAIN_SITE_NAME <?php print $this->uri; ?>;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_index index.php;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment