Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
81b66bab
Commit
81b66bab
authored
Dec 03, 2014
by
Grazyna Jaworska
Browse files
Nginx: Add missing variables in subdirectory config template.
parent
9391a997
Changes
1
Hide whitespace changes
Inline
Side-by-side
http/Provision/Config/Nginx/subdir.tpl.php
View file @
81b66bab
...
...
@@ -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;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment