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
Lorenzo Martinico
slapos
Commits
52cfdafa
Commit
52cfdafa
authored
Jun 14, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change httpd/apache config to perform testsuite with obfuscation access
parent
e112d7f9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
7 deletions
+37
-7
slapos/recipe/erp5testnode/__init__.py
slapos/recipe/erp5testnode/__init__.py
+2
-0
slapos/recipe/erp5testnode/template/httpd.conf.in
slapos/recipe/erp5testnode/template/httpd.conf.in
+33
-7
software/erp5testnode/instance-default.cfg
software/erp5testnode/instance-default.cfg
+2
-0
No files found.
slapos/recipe/erp5testnode/__init__.py
View file @
52cfdafa
...
@@ -88,6 +88,7 @@ class Recipe(GenericBaseRecipe):
...
@@ -88,6 +88,7 @@ class Recipe(GenericBaseRecipe):
lock_file
=
self
.
options
[
'httpd-lock-file'
],
lock_file
=
self
.
options
[
'httpd-lock-file'
],
ip
=
self
.
options
[
'httpd-ip'
],
ip
=
self
.
options
[
'httpd-ip'
],
port
=
self
.
options
[
'httpd-port'
],
port
=
self
.
options
[
'httpd-port'
],
port2
=
self
.
options
[
'httpd-port2'
],
testnode_srv_directory
=
self
.
options
[
'srv-directory'
],
testnode_srv_directory
=
self
.
options
[
'srv-directory'
],
error_log
=
os
.
path
.
join
(
self
.
options
[
'httpd-log-directory'
],
error_log
=
os
.
path
.
join
(
self
.
options
[
'httpd-log-directory'
],
'httpd-error.log'
),
'httpd-error.log'
),
...
@@ -96,6 +97,7 @@ class Recipe(GenericBaseRecipe):
...
@@ -96,6 +97,7 @@ class Recipe(GenericBaseRecipe):
certificate
=
self
.
options
[
'httpd-cert-file'
],
certificate
=
self
.
options
[
'httpd-cert-file'
],
key
=
self
.
options
[
'httpd-key-file'
],
key
=
self
.
options
[
'httpd-key-file'
],
testnode_log_directory
=
self
.
options
[
'log-directory'
],
testnode_log_directory
=
self
.
options
[
'log-directory'
],
testnode_link_to_testsuite_directory
=
self
.
option
[
'link-to-testsuite-directory'
],
)
)
config_file
=
self
.
createFile
(
self
.
options
[
'httpd-conf-file'
],
config_file
=
self
.
createFile
(
self
.
options
[
'httpd-conf-file'
],
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'httpd.conf.in'
),
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'httpd.conf.in'
),
...
...
slapos/recipe/erp5testnode/template/httpd.conf.in
View file @
52cfdafa
...
@@ -50,12 +50,38 @@ SSLHonorCipherOrder On
...
@@ -50,12 +50,38 @@ SSLHonorCipherOrder On
SSLCipherSuite RC4-SHA:HIGH:!ADH
SSLCipherSuite RC4-SHA:HIGH:!ADH
SSLProxyEngine On
SSLProxyEngine On
DocumentRoot "%(testnode_log_directory)s"
#DocumentRoot "%(testnode_log_directory)s"
# Directory protection
# Directory protection
<Directory />
#<Directory />
# Options Indexes FollowSymLinks
# IndexOptions FancyIndexing
# order allow,deny
# Allow from All
#</Directory>
# Directory protection
<VirtualHost *:%(port)s>
SSLEngine on
RewriteRule (.*) http://[%(ip)s]:%(port)s/VirtualHostBase/https/[%(ip)s]:%(port)s/VirtualHostRoot/$1 [L,P]
DocumentRoot "%(testnode_log_directory)s"
<Directory />
Options Indexes FollowSymLinks
Options Indexes FollowSymLinks
IndexOptions FancyIndexing
IndexOptions FancyIndexing
order allow,deny
order allow,deny
Allow from All
Allow from All
</Directory>
</Directory>
\ No newline at end of file
</VirtualHost>
Listen [%(ip)s]:%(port2)s
<VirtualHost *:%(port2)s>
SSLEngine on
RewriteRule (.*) http://[%(ip)s]:%(port2)s/VirtualHostBase/https/[%(ip)s]:%(port2)s/VirtualHostRoot/$1 [L,P]
DocumentRoot "%(testnode_link_to_testsuite_directory)s"
<Directory />
Options FollowSymLinks
IndexOptions FancyIndexing
order allow,deny
Allow from All
</Directory>
</VirtualHost>
software/erp5testnode/instance-default.cfg
View file @
52cfdafa
...
@@ -53,8 +53,10 @@ httpd-lock-file = $${basedirectory:run}/httpd.lock
...
@@ -53,8 +53,10 @@ httpd-lock-file = $${basedirectory:run}/httpd.lock
httpd-conf-file = $${rootdirectory:etc}/httpd.conf
httpd-conf-file = $${rootdirectory:etc}/httpd.conf
httpd-wrapper = $${rootdirectory:bin}/httpd
httpd-wrapper = $${rootdirectory:bin}/httpd
httpd-port = 9080
httpd-port = 9080
httpd-port2 = 9081
httpd-ip = $${slap-network-information:global-ipv6}
httpd-ip = $${slap-network-information:global-ipv6}
httpd-log-directory = $${basedirectory:log}
httpd-log-directory = $${basedirectory:log}
httpd-link-to-testsuite-directory = $${directory:link-to-testsuite}
httpd-cert-file = $${rootdirectory:etc}/httpd-public.crt
httpd-cert-file = $${rootdirectory:etc}/httpd-public.crt
httpd-key-file = $${rootdirectory:etc}/httpd-private.key
httpd-key-file = $${rootdirectory:etc}/httpd-private.key
...
...
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