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
c196e1fc
Commit
c196e1fc
authored
Nov 15, 2014
by
Grazyna Jaworska
Browse files
Nginx: proper sync with Apache redirects.
parent
01fb1027
Changes
1
Hide whitespace changes
Inline
Side-by-side
http/Provision/Config/Nginx/vhost.tpl.php
View file @
c196e1fc
...
...
@@ -61,7 +61,8 @@ if ($this->redirection || $ssl_redirection) {
print
"
\n
rewrite ^ https://
{
$this
->
uri
}
\$
request_uri? permanent;
\n
"
;
}
elseif
(
!
$ssl_redirection
&&
$this
->
redirection
)
{
print
" include "
.
$server
->
include_path
.
"/nginx_vhost_common.conf;
\n
"
;
// Redirect all aliases to the main http url.
print
" rewrite ^ http://
{
$this
->
redirection
}
\$
request_uri? permanent;
\n
"
;
}
}
else
{
...
...
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