| 18 |
-------------- |
-------------- |
| 19 |
|
|
| 20 |
The "web" directory should be set as DocumentRoot of your VirtualHost. |
The "web" directory should be set as DocumentRoot of your VirtualHost. |
|
AllowOverride All is required. |
|
|
|
|
|
pts.cgi and error404.cgi (in the bin/ dir) must be harldinked into |
|
|
web/common/. |
|
| 21 |
|
|
| 22 |
Example of apache config (adapt it to your case) |
Example of apache config (adapt it to your case) |
| 23 |
<VirtualHost master> |
<VirtualHost master> |
| 24 |
ServerName packages.qa.debian.org |
ServerName packages.qa.debian.org |
| 25 |
DocumentRoot /org/packages.qa.debian.org/www/web |
DocumentRoot /org/packages.qa.debian.org/www/web |
| 26 |
|
ErrorLog /var/log/apache/packages.qa.debian.org-error.log |
| 27 |
|
CustomLog /var/log/apache/packages.qa.debian.org-access.log combined |
| 28 |
|
|
| 29 |
|
ScriptAlias /cgi-bin /org/packages.qa.debian.org/www/cgi-bin |
| 30 |
|
|
| 31 |
RewriteEngine on |
RewriteEngine on |
| 32 |
RewriteRule ^/$ /common/index.html [L,R] |
RewriteRule ^/$ /common/index.html [L,R] |
| 33 |
RewriteRule ^/lib([^/])([^/]+)$ /lib$1/lib$1$2.html [L,R] |
RewriteRule ^/lib([^/])([^/]+)$ /lib$1/lib$1$2.html [L,R] |
| 34 |
RewriteRule ^/([^/])([^/]+)$ /$1/$1$2.html [L,R] |
RewriteRule ^/([^/])([^/]+)$ /$1/$1$2.html [L,R] |
| 35 |
|
RewriteCond %{QUERY_STRING} ^src=lib(.)(.*)$ |
| 36 |
|
RewriteRule ^/common/index.html$ /lib%1/lib%1%2.html? [L,R,NE] |
| 37 |
|
RewriteCond %{QUERY_STRING} ^src=(.)(.*)$ |
| 38 |
|
RewriteRule ^/common/index.html$ /%1/%1%2.html? [L,R,NE] |
| 39 |
</VirtualHost> |
</VirtualHost> |
| 40 |
|
|