Jump to content

Problem with running perl on apache


ivytony

Recommended Posts

OK, I have this file on my server http://www.rcholic.com/cgi-bin/uu_upload.pl

 

However, when I try to run it in the browser (firefox 3), I got 404 error:

 

Not Found

 

The requested URL /cgi-bin/uu_upload.pl was not found on this server.

 

However, I have the following code in the virtual host in httpd.conf

 

ScriptAlias  /cgi-bin/  /home/rchol/public_html/cgi-bin

<Directory /home/rchol/public_html/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>

 

The cgi-bin folder and its subfolder & files are all chmod to 755, and the ownership is correct.

 

I wonder what could be wrong  ??? ???. I appreciate your reply

 

 

Link to comment
Share on other sites

http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias

 

 

(ScriptAlias is similar to Alias.)

 

"Note that if you include a trailing / on the url-path then the server will require a trailing / in order to expand the alias. That is, if you use

 

Alias /icons/ /usr/local/apache/icons/

then the url /icons will not be aliased."

 

 

 

Try making your slashes on the ScriptAlias directive match up.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.