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

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

New MondoRescue site managed with ansible now

File size: 2.7 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 Alias /trac/ "/usr/share/trac/htdocs/"
39 <Location "/cgi-bin/trac.cgi">
40 SetEnv TRAC_ENV "/mondo/dploy/trac/dploy.env"
41 </Location>
42
43 # You need something like this to authenticate users
44 <Location "/cgi-bin/trac.cgi/login">
45 AuthType Basic
46 AuthName "Dploy"
47 AuthUserFile /usr/local/etc/dploy.htpasswd
48 Require valid-user
49 </Location>
50</VirtualHost>
51
52<VirtualHost {{ ip_int }}>
53 ServerName trac.dploy.org
54 SetEnv TRAC_ENV "/mondo/dploy/trac/dploy.env"
55 DocumentRoot /mondo/dploy/www/cgi-bin/trac.cgi
56 ServerAdmin webmaster@dploy.org
57 CustomLog /var/log/httpd/www.dploy.org/access_log combined
58 Errorlog /var/log/httpd/www.dploy.org/error_log
59
60 # fix mdk bug #16298
61 PassEnv LC_ALL
62 PassEnv LANG
63
64 <Directory "/mondo/dploy/www/cgi-bin">
65 AllowOverride All
66 Options +ExecCGI +FollowSymLinks
67 Require all granted
68 </Directory>
69
70 Alias /trac/ "/usr/share/trac/htdocs/"
71 ScriptAlias /cgi-bin/ "/mondo/dploy/www/cgi-bin/"
72
73 # You need something like this to authenticate users
74 <Location "/login">
75 AuthType Basic
76 AuthName "Dploy"
77 AuthUserFile /usr/local/etc/trac.htpasswd
78 Require valid-user
79 </Location>
80</VirtualHost>
81
82<VirtualHost {{ ip_int }}>
83 ServerName www1.dploy.org
84 ServerAdmin webmaster@dploy.org
85 DocumentRoot /mondo/dploy/www/html/test
86 CustomLog /var/log/httpd/www1.dploy.org/access_log combined
87 Errorlog /var/log/httpd/www1.dploy.org/error_log
88 <Directory "/mondo/dploy/www/html/test">
89 Options -Indexes +MultiViews +FollowSymLinks +Includes
90 AllowOverride None
91 Require all granted
92 </Directory>
93</VirtualHost>
Note: See TracBrowser for help on using the repository browser.