Commit 159c6d53 authored by omega8cc's avatar omega8cc

Nginx: Remember real site name in $main_site_name and MAIN_SITE_NAME.

parent 157fa70d
......@@ -24,6 +24,8 @@ if ($ssl_redirection || $this->redirection) {
server {
include fastcgi_params;
fastcgi_param MAIN_SITE_NAME <?php print $this->uri; ?>;
set $main_site_name "<?php print $this->uri; ?>";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param db_type <?php print urlencode($db_type); ?>;
fastcgi_param db_name <?php print urlencode($db_name); ?>;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment