Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
provision
Commits
923e3ed8
Commit
923e3ed8
authored
Jun 14, 2018
by
helmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2567173
by helmo: docs, change to the selected alias ... to match hosting_https
parent
477add15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
http/Provision/Config/Apache/vhost.tpl.php
http/Provision/Config/Apache/vhost.tpl.php
+2
-2
No files found.
http/Provision/Config/Apache/vhost.tpl.php
View file @
923e3ed8
...
@@ -45,11 +45,11 @@ if ($this->redirection || $ssl_redirection) {
...
@@ -45,11 +45,11 @@ if ($this->redirection || $ssl_redirection) {
print
" RewriteRule ^/*(.*)$ https://%
{
HTTP_HOST
}
/$1 [NE,L,R=301]
\n
"
;
print
" RewriteRule ^/*(.*)$ https://%
{
HTTP_HOST
}
/$1 [NE,L,R=301]
\n
"
;
}
}
elseif
(
$ssl_redirection
&&
$this
->
redirection
)
{
elseif
(
$ssl_redirection
&&
$this
->
redirection
)
{
print
" # Redirect all aliases + main uri to the
main
https uri.
\n
"
;
print
" # Redirect all aliases + main uri to the
selected alias
https uri.
\n
"
;
print
" RewriteRule ^/*(.*)$ https://
{
$this
->
redirection
}
/$1 [NE,L,R=301]
\n
"
;
print
" RewriteRule ^/*(.*)$ https://
{
$this
->
redirection
}
/$1 [NE,L,R=301]
\n
"
;
}
}
elseif
(
!
$ssl_redirection
&&
$this
->
redirection
)
{
elseif
(
!
$ssl_redirection
&&
$this
->
redirection
)
{
print
" # Redirect all aliases to the
main http url
.
\n
"
;
print
" # Redirect all aliases to the
selected alias
.
\n
"
;
print
" RewriteCond %
{
HTTP_HOST
}
!^
{
$this
->
redirection
}
$ [NC]
\n
"
;
print
" RewriteCond %
{
HTTP_HOST
}
!^
{
$this
->
redirection
}
$ [NC]
\n
"
;
print
" RewriteRule ^/*(.*)$ http://
{
$this
->
redirection
}
/$1 [NE,L,R=301]
\n
"
;
print
" RewriteRule ^/*(.*)$ http://
{
$this
->
redirection
}
/$1 [NE,L,R=301]
\n
"
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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