rewrite engine shows text instead of executes script

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




To the best to my memory, the following .htaccess worked on linux, but
on OSX, the result is that the browser gives me the text of the
script, rather the output of the script.
FYI: The script is fully functional when requested via cgi-bin.

# .htaccess
RewriteEngine On
DirectoryIndex journalLoader.py
RewriteCond $1
!^(journalLoader\.py|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./journalLoader.py/$1 [L,QSA]
# /.htaccess

the script journalLoader.py is at the path
http://linus.johnson.com/cgi-bin/baker/journal/journalLoader.py
(internal search domain) and when requested provides the
output I expect.

The directory/folder contain journalLoader.py is symlinked to 
my wwwroot directory.
When I point my browser to http://linus.johnson.com/journal
!!!!!!
The server gives me the text for the script rather than the output
!!!!!!
I'm woefully underinformed when it comes to .htaccess and mode
rewrite, but it occurs to me that if this works on a linux box and
not the the OSX platform, some configuration is need for Apache?
What would that be?

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot 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



[Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Photo]     [Yosemite Photos]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]


Add to Google Powered by Linux