[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-hackers-public] Using mod_python to serve a top-level URL
From: |
Sylvain Beucler |
Subject: |
[Savannah-hackers-public] Using mod_python to serve a top-level URL |
Date: |
Sun, 13 May 2007 22:38:25 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hi,
For you mod_python fans :)
I'm trying to get mod_python to serve /viewvc/?root=blah at Savannah
instead of ugly /viewvc/viewvc.py?root=blah :
Alias /viewvc-mp-files /var/www/viewvc/bin/mod_python
<Directory "/var/www/viewvc/bin/mod_python/">
AddHandler python-program .py
PythonHandler handler
PythonDebug On
</Directory>
RewriteRule ^/viewvc/ /viewvc-mp-files/viewvc.py/ [passthrough]
(In CGI this is just a ScriptAlias /viewvc .../viewvc.cgi)
I'd like to avoid the mod_rewrite step and have mod_python serve
/viewvc directly.
Do you know how to do so?
Thanks,
--
Sylvain
- [Savannah-hackers-public] Using mod_python to serve a top-level URL,
Sylvain Beucler <=