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
Kwabena Antwi-Boasiako
slapos
Commits
c0cf313e
Commit
c0cf313e
authored
May 22, 2013
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apache-frontend: Use domain instead of server_name
parent
f05d5828
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
software/apache-frontend/apache-slave-list.cfg.in
software/apache-frontend/apache-slave-list.cfg.in
+2
-2
software/apache-frontend/apache-yakari.cfg.in
software/apache-frontend/apache-yakari.cfg.in
+3
-3
software/apache-frontend/apache.conf.in
software/apache-frontend/apache.conf.in
+1
-1
software/apache-frontend/apache_cached.conf.in
software/apache-frontend/apache_cached.conf.in
+1
-1
software/apache-frontend/instance.cfg
software/apache-frontend/instance.cfg
+2
-2
No files found.
software/apache-frontend/apache-slave-list.cfg.in
View file @
c0cf313e
...
...
@@ -56,8 +56,8 @@ apache_custom_https = {{ dumps(apache_custom_https) }}
{{ '\n' }}
# The slave use cache
{% if 'enable_cache' in slave_instance and 'url' in slave_instance and '
server_name
' in slave_instance -%}
{% do cached_server_dict.__setitem__(slave_instance.get('
server_name
'), slave_instance.get('url')) -%}
{% if 'enable_cache' in slave_instance and 'url' in slave_instance and '
domain
' in slave_instance -%}
{% do cached_server_dict.__setitem__(slave_instance.get('
domain
'), slave_instance.get('url')) -%}
{% endif -%}
{% endfor -%}
...
...
software/apache-frontend/apache-yakari.cfg.in
View file @
c0cf313e
...
...
@@ -14,12 +14,12 @@ context =
{% set slave_reference = slave_instance.get('slave_reference') -%}
{% set slave_section_title = 'dynamic-template-slave-instance-%s' % slave_reference -%}
{% set slave_parameter_dict = generic_instance_parameter_dict.copy() -%}
{% if slave_instance.get('
server_name
', None) == None -%}
{% do slave_instance.__setitem__('
server_name
', "%s.%s" % (slave_instance.get('slave_reference').replace("-", "").lower(), domain)) -%}
{% if slave_instance.get('
domain
', None) == None -%}
{% do slave_instance.__setitem__('
domain
', "%s.%s" % (slave_instance.get('slave_reference').replace("-", "").lower(), domain)) -%}
{% endif -%}
{% if 'enable_cache' in slave_instance -%}
# The slave use cache
{% do cached_server_dict.__setitem__(slave_instance.get('
server_name
'), slave_instance.get('url')) -%}
{% do cached_server_dict.__setitem__(slave_instance.get('
domain
'), slave_instance.get('url')) -%}
{% endif -%}
{% do slave_instance.__setitem__('url', cache_access) -%}
{% do part_list.append(slave_section_title) -%}
...
...
software/apache-frontend/apache.conf.in
View file @
c0cf313e
...
...
@@ -3,7 +3,7 @@
# Basic server configuration
PidFile "{{ pid_file }}"
ServerName {{
server_name
}}
ServerName {{
domain
}}
DocumentRoot {{ document_root }}
ServerRoot {{ instance_home }}
...
...
software/apache-frontend/apache_cached.conf.in
View file @
c0cf313e
...
...
@@ -3,7 +3,7 @@
# Basic server configuration
PidFile "{{ pid_file }}"
ServerName {{
server_name
}}
ServerName {{
domain
}}
DocumentRoot {{ document_root }}
ServerRoot {{ instance_home }}
...
...
software/apache-frontend/instance.cfg
View file @
c0cf313e
...
...
@@ -155,7 +155,7 @@ rendered = $${apache-configuration:frontend-configuration}
extra-context =
raw httpd_home ${apache-2.2:location}
key httpd_mod_ssl_cache_directory apache-directory:mod-ssl
key
server_name
instance-parameter:configuration.domain
key
domain
instance-parameter:configuration.domain
key document_root apache-directory:document-root
key instance_home buildout:directory
key ipv4_addr instance-parameter:ipv4-random
...
...
@@ -190,7 +190,7 @@ rendered = $${apache-configuration:cached-configuration}
extra-context =
raw httpd_home ${apache-2.2:location}
key httpd_mod_ssl_cache_directory apache-directory:mod-ssl
key
server_name
instance-parameter:configuration.domain
key
domain
instance-parameter:configuration.domain
key document_root apache-directory:document-root
key instance_home buildout:directory
key ipv4_addr instance-parameter:ipv4-random
...
...
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