<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hello all,<br><br>I'll try to give as much detail as I can, but this is a somewhat vague problem. I have a very simple script that I would like to implement as a CGI script, just so I can hit a URL and get some output. However, after following a number of tutorials, I am still seeing some very odd results. I am almost sure it's in my Apache configuration, but I figured a few people on this list would likely know what the minimal related Apache config should be. (The Apache docs are pretty daunting...)<br><br>Local version wise, I am on Ubuntu 8.10, with Apache 2.2.9 and Python 2.5.2. I have libapache2-mod-python installed. Apache config is out of the box, along with:<br><br>ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"<br><br>In /var/www/cgi-bin, I have <a target="_blank" href="http://hello.py">hello.py</a>:<br><br>#!/usr/bin/python<br>import cgitb<br>cgitb.enable()<br><br>print
 "Content-type: text/html"<br>print<br>print "&lt;html&gt;"<br>print
 "&lt;center&gt;Hello!&lt;/center&gt;"<br>print "&lt;/html&gt;"<br><br><div>Reload, hit http://localhost/cgi-bin/hello.py in a browser, I get centered text just fine. Now I want to do this same process on my remote webserver. On there, I am on Ubuntu 7.10, with Apache 2.2.4 and Python 2.5.1. I add:<br><br>ScriptAlias /python/ "/var/www/samuelhuckins.com/python"<br><br>Reload, hit http://samuelhuckins.com/python/hello.py, and I get a 404? The perms and ownership on the file is the same as in other directories. Do I need to add some sort of handler, with mod_python.publisher? I think I am just missing one of the basics of this whole process.<br><br>Thanks for any assistance,<br>Sam<br><br></div>_______________________<br>Samuel Huckins<br><br><div>Homepage - <a target="_blank" href="http://samuelhuckins.com">http://samuelhuckins.com</a><br>Tech blog - <a target="_blank"
 href="http://dancingpenguinsoflight.com/">http://dancingpenguinsoflight.com/</a><br>Photos - <a target="_blank" href="http://www.flickr.com/photos/samuelhuckins/">http://www.flickr.com/photos/samuelhuckins/</a><br>AIM - samushack | Gtalk - samushack | Skype - shuckins<div><br></div></div></div></div></body></html>