source: MondoRescue/branches/3.3/ansible/roles/httpd/templates/dploy.org.conf@ 3656

Last change on this file since 3656 was 3656, checked in by Bruno Cornec, 7 years ago

More services up and runnig for the MondoRescue server

File size: 2.6 KB
Line 
1<VirtualHost {{ ip_int }}>
2 ServerName www.dploy.org
3 ServerAdmin webmaster@dploy.org
4 DocumentRoot /mondo/dploy/www/html/dploy
5 CustomLog /var/log/httpd/www.dploy.org/access_log combined
6 Errorlog /var/log/httpd/www.dploy.org/error_log
7 RewriteEngine On
8 RewriteRule ^/index\.html$ /index.shtml
9 RewriteRule ^/$ /index.shtml
10
11 <Directory "/mondo/dploy/www/html/dploy">
12 DirectoryIndex index.shtml
13 Options -Indexes +MultiViews +FollowSymLinks +Includes
14 AllowOverride None
15 Require all granted
16 </Directory>
17
18 <Directory "/mondo/dploy/www/cgi-bin">
19 AllowOverride All
20 Options +ExecCGI +FollowSymLinks
21 Require all granted
22 </Directory>
23
24 ScriptAlias /cgi-bin/ "/mondo/dploy/www/cgi-bin/"
25
26 # fix mdk bug #16298
27 PassEnv LC_ALL
28 PassEnv LANG
29
30 # fix mdk bug #16298
31 <Directory "/usr/share/trac/htdocs/">
32 Options +Indexes +MultiViews
33 AllowOverride None
34 Require all granted
35 Allow from All
36 </Directory>
37
38 # You need something like this to authenticate users
39 <Location "/cgi-bin/trac.cgi/login">
40 AuthType Basic
41 AuthName "Dploy"
42 AuthUserFile /usr/local/etc/dploy.htpasswd
43 Require valid-user
44 </Location>
45</VirtualHost>
46
47<VirtualHost {{ ip_int }}>
48 ServerName trac.dploy.org
49 DefaultInitEnv TRAC_ENV "/mondo/dploy/trac/dploy.env"
50 DocumentRoot /mondo/dploy/www/cgi-bin/trac.cgi
51 ServerAdmin webmaster@dploy.org
52 CustomLog /var/log/httpd/www.dploy.org/access_log combined
53 Errorlog /var/log/httpd/www.dploy.org/error_log
54
55 # fix mdk bug #16298
56 PassEnv LC_ALL
57 PassEnv LANG
58
59 <Directory "/mondo/dploy/www/cgi-bin">
60 AllowOverride All
61 Options +ExecCGI +FollowSymLinks
62 Require all granted
63 </Directory>
64
65 Alias /trac/ "/usr/share/trac/htdocs/"
66 ScriptAlias /cgi-bin/ "/mondo/dploy/www/cgi-bin/"
67
68 # You need something like this to authenticate users
69 <Location "/login">
70 AuthType Basic
71 AuthName "Dploy"
72 AuthUserFile /usr/local/etc/trac.htpasswd
73 Require valid-user
74 </Location>
75</VirtualHost>
76
77<VirtualHost {{ ip_int }}>
78 ServerName www1.dploy.org
79 ServerAdmin webmaster@dploy.org
80 DocumentRoot /mondo/dploy/www/html/test
81 CustomLog /var/log/httpd/www1.dploy.org/access_log combined
82 Errorlog /var/log/httpd/www1.dploy.org/error_log
83 <Directory "/mondo/dploy/www/html/test">
84 Options -Indexes +MultiViews +FollowSymLinks +Includes
85 AllowOverride None
86 Require all granted
87 </Directory>
88</VirtualHost>
Note: See TracBrowser for help on using the repository browser.