apache mod_python rewrite etc...
Hola a todos tal vez me recuerden de otros post de:
http://www.esdebian.org/foro/25462/apache-rewrite-alias-htaccess
bueno fuera bromas, el link que he mandado es referente a que toda referencia de una peticion http pase por index.php.
Funciona perfectamente, pero con python no me funciona:
Alias /python /home/python/web/public_html
<Directory /home/python/web/public_html>
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
SetHandler mod_python
PythonHandler mod_python.cgihandler
PythonDebug On
</Directory>
me da error 404 en cambio index.py si funciona y tengo esto tambien:
/etc/apache2/mods-available/dir.conf
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.py
</IfModule>
http://zital.no-ip.org/python/
no funciona en cambio
http://zital.no-ip.org/python/index.py si funciona
alguna idea?
se me olvido el .htaccess:
RewriteEngine On
RewriteBase /python
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /python/index.py [L]- Inicie sesión o regístrese para enviar comentarios
- 170 lecturas



Existe /etc/apache2/mods-enable/dir.conf?
si, el caso es que el DirectoryIndex funciona en otros "sites"
en cambio esto si funciona:
http://zital.no-ip.org/python/asdasd/
aunque la carpeta asdasd no exista ya que doy por supuesto que el rewrite lo hace bien
al final lo he solucionado asi:
Alias /python /home/python/web/public_html<Directory "/home/python/web/public_html">
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler mod_python .py
PythonHandler mod_python.cgihandler
PythonDebug On
</Directory>
asi funciona con:
*/python
*/python/
*/python/ada/
:)