How htaccess enables CGI script as default page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm using apache 2 on mint 10 (ubuntu 10 derivative)

I'm attempting to use .htaccess to make an executable python script
as the default page for a directory.

My document root is at /home/http

I have an .htaccess file at /home/http/kbmls
I have a script - index.py at /home/http/kbmls
/home/http/kbmls permissions are set to 755
index.py permissions are set to 755

Code for .htaccess follows:
##
RewriteEngine on
RewriteCond $1 !^(index\.py|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.py/$1 [L,QSA]
##
When I point the browser to /home/http/kbmls the browser
offers to download everything - obviously not what I want.

If possible, I would like to do this without any system-wide
configuration changes - such as I have had to do with dir.conf in
the past (if I recall correctly)

What else do I need to do with .htaccess?
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux