Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
isaak yansane-sisk
slapos
Commits
c99d0904
Commit
c99d0904
authored
Jul 28, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix when single "/" is provided as front end path.
parent
892f2055
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
slapos/recipe/erp5/__init__.py
slapos/recipe/erp5/__init__.py
+7
-1
No files found.
slapos/recipe/erp5/__init__.py
View file @
c99d0904
...
@@ -932,12 +932,18 @@ class Recipe(BaseSlapRecipe):
...
@@ -932,12 +932,18 @@ class Recipe(BaseSlapRecipe):
rewrite_rule_template
=
\
rewrite_rule_template
=
\
"RewriteRule ^%(path)s($|/.*) %(backend_url)s/VirtualHostBase/https/%(server_name)s:%(port)s%(backend_path)s/VirtualHostRoot/%(vhname)s$1 [L,P]
\
n
"
"RewriteRule ^%(path)s($|/.*) %(backend_url)s/VirtualHostBase/https/%(server_name)s:%(port)s%(backend_path)s/VirtualHostRoot/%(vhname)s$1 [L,P]
\
n
"
if
frontend_path
not
in
[
""
,
None
,
"/"
]:
vhname
=
"_vh_%s"
%
frontend_path
.
replace
(
'/'
,
''
)
else
:
vhname
=
""
frontend_path
=
""
rewrite_rule
=
rewrite_rule_template
%
dict
(
rewrite_rule
=
rewrite_rule_template
%
dict
(
path
=
frontend_path
,
path
=
frontend_path
,
backend_url
=
backend_url
,
backend_url
=
backend_url
,
backend_path
=
backend_path
,
backend_path
=
backend_path
,
port
=
apache_conf
[
'port'
],
port
=
apache_conf
[
'port'
],
vhname
=
frontend_path
.
replace
(
'/'
,
''
)
,
vhname
=
vhname
,
server_name
=
name
)
server_name
=
name
)
apache_conf
.
update
(
**
dict
(
apache_conf
.
update
(
**
dict
(
...
...
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