Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-31 Thread Tim Johnson
* Igor Cicimov [120131 13:58]: > You can use meta tag in your head section to call your script for example > > http://yourdomain.com/path/to/your/cgi-script.py";> > > which will call your script immediately on index.html load. > > Or you can also use java script redirect in the body tag of inde

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-31 Thread Igor Cicimov
You can use meta tag in your head section to call your script for example http://yourdomain.com/path/to/your/cgi-script.py";> which will call your script immediately on index.html load. Or you can also use java script redirect in the body tag of index.html something like this: http://yourdomai

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-31 Thread Tim Johnson
* Igor Cicimov [120130 18:11]: > > > > If I eliminate it, then I just a get an index page.. > > > Correct, and in that index.html page you call or redirect to your pyton > script. That's the proper way to do it so you keep your web pages structure > separate from your cgi scripts that live in a

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Igor Cicimov
> > If I eliminate it, then I just a get an index page.. Correct, and in that index.html page you call or redirect to your pyton script. That's the proper way to do it so you keep your web pages structure separate from your cgi scripts that live in a separate directory cgi-bin. On Tue, Jan 31,

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Tim Johnson
* Igor Cicimov [120130 16:10]: > Plus if the journalLoader.py is a script then the directive > > DirectoryIndex journalLoader.py If I eliminate it, then I just a get an index page.. -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com --

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Tim Johnson
* Igor Cicimov [120130 16:10]: > You need to tell apache you want it to handle the pyton files as scripts > not as html/text files. > > AddHandler cgi-script .cgi .pl .py > > You (or someone else) have probably done that on linux but you are not > aware or have forgotten about it. Yup. Here we

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Tim Johnson
* Igor Cicimov [120130 16:10]: > You need to tell apache you want it to handle the pyton files as scripts > not as html/text files. > > AddHandler cgi-script .cgi .pl .py > > You (or someone else) have probably done that on linux but you are not > aware or have forgotten about it. Thanks Igor,

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Igor Cicimov
Plus if the journalLoader.py is a script then the directive DirectoryIndex journalLoader.py doesn't make any sense to me. On Tue, Jan 31, 2012 at 11:59 AM, Igor Cicimov wrote: > You need to tell apache you want it to handle the pyton files as scripts > not as html/text files. > > AddHandler c

Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Igor Cicimov
You need to tell apache you want it to handle the pyton files as scripts not as html/text files. AddHandler cgi-script .cgi .pl .py You (or someone else) have probably done that on linux but you are not aware or have forgotten about it. Igor On Tue, Jan 31, 2012 at 10:18 AM, Tim Johnson wrote:

[users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Tim Johnson
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.