aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/web/files/apache-virtualhost.conf
diff options
context:
space:
mode:
authorOle Mathias Aa. Heggem <msbone1995@gmail.com>2018-01-23 22:22:10 +0100
committerOle Mathias Aa. Heggem <msbone1995@gmail.com>2018-01-23 22:22:10 +0100
commit6659dddc6dddcead1ea5d2535ba879eead66332d (patch)
treee332baec5f89e4a89a1d5ea7332aee3c72968738 /ansible/roles/web/files/apache-virtualhost.conf
parent0016b6612e79cc5b115aae11c7f37ec2a27420e1 (diff)
Added varnish to ansible job
Diffstat (limited to 'ansible/roles/web/files/apache-virtualhost.conf')
-rw-r--r--ansible/roles/web/files/apache-virtualhost.conf40
1 files changed, 40 insertions, 0 deletions
diff --git a/ansible/roles/web/files/apache-virtualhost.conf b/ansible/roles/web/files/apache-virtualhost.conf
new file mode 100644
index 0000000..d9fadbe
--- /dev/null
+++ b/ansible/roles/web/files/apache-virtualhost.conf
@@ -0,0 +1,40 @@
+<VirtualHost *:8080>
+ ServerAdmin lol@example.com
+ ServerName gondul.gathering.org
+ ServerAlias gondul.gathering.org
+
+ DocumentRoot /opt/gondul/web
+ ScriptAlias /api/write/ /opt/gondul/web/api/write/
+ ScriptAlias /api/read/ /opt/gondul/web/api/read/
+ ScriptAlias /api/public/ /opt/gondul/web/api/public/
+ <Directory "/opt/gondul/web/api/write/">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ </Directory>
+ <Directory "/opt/gondul/web/api/read/">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ </Directory>
+ <Directory "/opt/gondul/web/api/public/">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +Indexes +SymLinksIfOwnerMatch
+ Require all granted
+ </Directory>
+ <Directory "/opt/gondul/web">
+ AllowOverride None
+ Options Indexes FollowSymLinks MultiViews
+ AddDefaultCharset UTF-8
+ Require all granted
+ </Directory>
+
+
+ ErrorLog /var/log/apache2/error-nms.example.com.log
+
+ # Possible values include: debug, info, notice, warn, error, crit,
+ # alert, emerg.
+ LogLevel warn
+
+ CustomLog /var/log/apache2/access-nms.example.com.log combined
+ ServerSignature On
+
+</VirtualHost>