/[qa]/trunk/pts/apache.conf
ViewVC logotype

Contents of /trunk/pts/apache.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1286 - (hide annotations) (download)
Mon Feb 20 16:32:42 2006 UTC (7 years, 3 months ago) by jeroen
File size: 795 byte(s)
Add charset=utf-8 to all static html pages, and move 404 errordocument to the
apache.conf, dropping the .htaccess
1 jeroen 907
2     <VirtualHost master>
3     ServerName packages.qa.debian.org
4     DocumentRoot /org/packages.qa.debian.org/www/web
5     ErrorLog /var/log/apache/packages.qa.debian.org-error.log
6     CustomLog /var/log/apache/packages.qa.debian.org-access.log combined
7    
8 jeroen 1286 # All our html pages are UTF-8
9     AddType "text/html; charset=UTF-8" html
10    
11 jeroen 907 ScriptAlias /cgi-bin /org/packages.qa.debian.org/www/cgi-bin
12 jeroen 1286 ErrorDocument 404 /cgi-bin/error404.cgi
13 jeroen 907
14     RewriteEngine on
15     RewriteRule ^/$ /common/index.html [L,R]
16     RewriteRule ^/lib([^/])([^/]+)$ /lib$1/lib$1$2.html [L,R]
17     RewriteRule ^/([^/])([^/]+)$ /$1/$1$2.html [L,R]
18     RewriteCond %{QUERY_STRING} ^src=lib(.)(.*)$
19     RewriteRule ^/common/index.html$ /lib%1/lib%1%2.html? [L,R,NE]
20     RewriteCond %{QUERY_STRING} ^src=(.)(.*)$
21     RewriteRule ^/common/index.html$ /%1/%1%2.html? [L,R,NE]
22     </VirtualHost>
23    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5