| 1 | #
|
|---|
| 2 | # Apache Virtual Host Configuration File
|
|---|
| 3 | # Replace * by IP address of the machine
|
|---|
| 4 | NameVirtualHost *
|
|---|
| 5 |
|
|---|
| 6 | <VirtualHost *>
|
|---|
| 7 | ServerName www.mondorescue.org
|
|---|
| 8 | #ServerAlias mondorescue.org
|
|---|
| 9 | ServerAdmin webmaster@mondorescue.org
|
|---|
| 10 | DocumentRoot /mondo/www/html/mondo
|
|---|
| 11 | CustomLog /var/log/httpd/www.mondorescue.org/access_log combined
|
|---|
| 12 | Errorlog /var/log/httpd/www.mondorescue.org/error_log
|
|---|
| 13 | RewriteEngine On
|
|---|
| 14 | RewriteRule ^/index\.html$ /index.shtml
|
|---|
| 15 | RewriteRule ^/$ /index.shtml
|
|---|
| 16 | <Directory "/mondo/www/html/mondo">
|
|---|
| 17 | DirectoryIndex index.shtml
|
|---|
| 18 | Options -Indexes MultiViews FollowSymLinks +Includes
|
|---|
| 19 | AllowOverride None
|
|---|
| 20 | Order allow,deny
|
|---|
| 21 | Allow from all
|
|---|
| 22 | </Directory>
|
|---|
| 23 | <Directory "/mondo/www/cgi-bin">
|
|---|
| 24 | AllowOverride All
|
|---|
| 25 | Options ExecCGI FollowSymLinks
|
|---|
| 26 | Order allow,deny
|
|---|
| 27 | Allow from all
|
|---|
| 28 | </Directory>
|
|---|
| 29 |
|
|---|
| 30 | ScriptAlias /cgi-bin/ "/mondo/www/cgi-bin/"
|
|---|
| 31 |
|
|---|
| 32 | # fix mdk bug #16298
|
|---|
| 33 | PassEnv LC_ALL
|
|---|
| 34 | PassEnv LANG
|
|---|
| 35 |
|
|---|
| 36 | # fix mdk bug #16298
|
|---|
| 37 | <Directory "/usr/share/trac/htdocs/">
|
|---|
| 38 | Options Indexes MultiViews
|
|---|
| 39 | AllowOverride None
|
|---|
| 40 | Order allow,deny
|
|---|
| 41 | Allow from All
|
|---|
| 42 | </Directory>
|
|---|
| 43 |
|
|---|
| 44 | Alias /trac/ "/usr/share/trac/htdocs/"
|
|---|
| 45 | <Location "/cgi-bin/trac.cgi">
|
|---|
| 46 | SetEnv TRAC_ENV "/mondo/trac/mondorescue.env"
|
|---|
| 47 | </Location>
|
|---|
| 48 |
|
|---|
| 49 | # You need something like this to authenticate users
|
|---|
| 50 | <Location "/cgi-bin/trac.cgi/login">
|
|---|
| 51 | AuthType Basic
|
|---|
| 52 | AuthName "MondoRescue"
|
|---|
| 53 | AuthUserFile /etc/trac.htpasswd
|
|---|
| 54 | Require valid-user
|
|---|
| 55 | </Location>
|
|---|
| 56 | </VirtualHost>
|
|---|
| 57 |
|
|---|
| 58 | <VirtualHost *>
|
|---|
| 59 | ServerName oldwww.mondorescue.org
|
|---|
| 60 | ServerAdmin webmaster@mondorescue.org
|
|---|
| 61 | DocumentRoot /mondo/www/html/oldwww
|
|---|
| 62 | CustomLog /var/log/httpd/oldwww.mondorescue.org/access_log combined
|
|---|
| 63 | Errorlog /var/log/httpd/oldwww.mondorescue.org/error_log
|
|---|
| 64 | <Directory "/mondo/www/html/oldwww">
|
|---|
| 65 | Options -Indexes MultiViews FollowSymLinks +Includes
|
|---|
| 66 | AllowOverride None
|
|---|
| 67 | Order allow,deny
|
|---|
| 68 | Allow from all
|
|---|
| 69 | </Directory>
|
|---|
| 70 | </VirtualHost>
|
|---|
| 71 |
|
|---|
| 72 | <VirtualHost *>
|
|---|
| 73 | ServerName www1.mondorescue.org
|
|---|
| 74 | ServerAdmin webmaster@mondorescue.org
|
|---|
| 75 | DocumentRoot /mondo/www/html/test
|
|---|
| 76 | CustomLog /var/log/httpd/www1.mondorescue.org/access_log combined
|
|---|
| 77 | Errorlog /var/log/httpd/www1.mondorescue.org/error_log
|
|---|
| 78 | <Directory "/mondo/www/html/test">
|
|---|
| 79 | Options -Indexes MultiViews FollowSymLinks +Includes
|
|---|
| 80 | AllowOverride None
|
|---|
| 81 | Order allow,deny
|
|---|
| 82 | Allow from all
|
|---|
| 83 | </Directory>
|
|---|
| 84 | </VirtualHost>
|
|---|
| 85 |
|
|---|
| 86 | <VirtualHost *>
|
|---|
| 87 | ServerName www.mondorescue.com
|
|---|
| 88 | ServerAdmin webmaster@mondorescue.com
|
|---|
| 89 | DocumentRoot /mondo/www/html/mondo
|
|---|
| 90 | CustomLog /var/log/httpd/www.mondorescue.com/access_log combined
|
|---|
| 91 | Errorlog /var/log/httpd/www.mondorescue.com/error_log
|
|---|
| 92 | <Directory "/mondo/www/html/mondo">
|
|---|
| 93 | DirectoryIndex index.shtml
|
|---|
| 94 | Options -Indexes MultiViews FollowSymLinks +Includes
|
|---|
| 95 | AllowOverride None
|
|---|
| 96 | Order allow,deny
|
|---|
| 97 | Allow from all
|
|---|
| 98 | </Directory>
|
|---|
| 99 | </VirtualHost>
|
|---|