reworking httpd config to work better on qa-stg01
This commit is contained in:
parent
2c205e2027
commit
b406ec2d1c
2 changed files with 21 additions and 9 deletions
|
@ -1,8 +1,22 @@
|
||||||
# this is meant for proxied stuff only, hence the lack of ssl
|
# this is meant for proxied stuff only, hence the lack of ssl
|
||||||
|
|
||||||
Alias /{{ item.name }} {{ item.document_root }}
|
<VirtualHost *:80>
|
||||||
|
# Change this to the domain which points to your host.
|
||||||
|
ServerName {{ item.name }}
|
||||||
|
|
||||||
<Directory "{{ item.document_root }}">
|
DocumentRoot {{ item.document_root }}
|
||||||
Options Indexes FollowSymLinks
|
|
||||||
Require all granted
|
ErrorLog "/var/log/httpd/{{ item.name }}.error_log"
|
||||||
</Directory>
|
CustomLog "/var/log/httpd/{{ item.name }}.access_log" common
|
||||||
|
|
||||||
|
<Directory "{{ item.document_root }}">
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<Location "/">
|
||||||
|
Options +Indexes
|
||||||
|
DirectoryIndex default.html
|
||||||
|
</Location>
|
||||||
|
|
||||||
|
</VirtualHost>
|
||||||
|
|
|
@ -78,10 +78,8 @@ tcp_ports: [ 80, 222, 443, "{{ buildslave_port }}", 3306 ]
|
||||||
|
|
||||||
# static sites
|
# static sites
|
||||||
static_sites:
|
static_sites:
|
||||||
- name: docs
|
- name: {{ inventory_hostname }}
|
||||||
document_root: /srv/content/docs
|
document_root: /srv/content
|
||||||
- name: releases
|
|
||||||
document_root: /srv/content/releases
|
|
||||||
|
|
||||||
sslonly: false
|
sslonly: false
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue