0

I make a GET request to a CGI script and I get a 404 error. However, I am 100% sure that script is present and it has permissions:

-rwxr-xr-x  1 apache apache   6520 Sep  7 03:01 uu_ini_status_audios.pl

The request URL is:

http://mysite.com/cgi-bin/uu_ini_status_audios.pl?tmp_sid=893facacc5dc392ad0f4c91e6a9e8d40&rnd_id=0.12266222834382812

The error I get:

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

This use to work for me before, but I think it stopped working after I restarted apache so maybe it means its a configuration I changed??

I checked the error logs for apache and php and nothing useful was found to help me with my problem!

I appreciate any help on this!

Abs
  • 1,429
  • 4
  • 18
  • 32

1 Answers1

1

You have an error in your Apache configuration.

In your <VirtualHost> section you need

 ScriptAlias /cgi-bin/ "/var/www/vhosts/mysite.com/httpdocs/cgi-bin/"   
RedGrittyBrick
  • 3,792
  • 1
  • 16
  • 21
  • Thank you so much. I didn't think to look in my httpd.include, the path to CGI was incorrect, I don't know how that happened! – Abs Dec 26 '10 at 14:50