* Igor Cicimov icici...@gmail.com [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
You can use meta tag in your head section to call your script for example
meta http-equiv=refresh content=0;url=
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
* Igor Cicimov icici...@gmail.com [120131 13:58]:
You can use meta tag in your head section to call your script for example
meta http-equiv=refresh content=0;url=
http://yourdomain.com/path/to/your/cgi-script.py;
which will call your script immediately on index.html load.
Or you can
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
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
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 icici...@gmail.com wrote:
You need to tell apache you want it to handle the pyton files as scripts
not as html/text files.
* Igor Cicimov icici...@gmail.com [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.
* Igor Cicimov icici...@gmail.com [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.
* Igor Cicimov icici...@gmail.com [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
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,
10 matches
Mail list logo