Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Httpd cgi configuring RH 7.1

Status
Not open for further replies.

optimised

Technical User
Jun 21, 2001
96
US
Hello,
rh7.1
I keep getting internal error 505
Error_log
[error] (2) No such file or directory: exec of /home/mydomain/[error] Premature end of script headers
I want to be able to allow cgi-scripts to run in sub directory (eg)
/home/mydomain/
From what I've read you Alias or ScriptAlias something only if it's Not under your docroot. My cgi-bin is a subdir under /home/mydomain/ so it violates Alias rule in Apache.

WHAT DO I NEED TO CHANGE IN HTTPD TO FIX?

--This is what I have--
ScriptAlias /cgi-bin/ "/home/mydomain/
<Directory &quot;/home/mydomain/Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory &quot;/home/mydomain/cgi-bin&quot;>
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

# Virtual host mydomain
<VirtualHost x.x.x.x>
DocumentRoot /home/mydomain/www
ServerName ScriptAlias /cgi-bin/ &quot;/home/mydomain/cgi-bin/&quot;
ServerSignature email
</VirtualHost>

Produces error(2)
exec of /home/mydomain/
Thanks
 
You might want to add to the <Directory> container,
Options +ExecCGI

If that doesn't work, check you script. If that checks out, and permissions are set properly, then make sure they weren't damaged in an FTP transfer as binary.

Rninja

smlogo.gif

 
Hello,

There was a trailing ^M at the end of line of every line.

Things are working fine now

thanks......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top