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 "/home/mydomain/Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/home/mydomain/cgi-bin">
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/ "/home/mydomain/cgi-bin/"
ServerSignature email
</VirtualHost>
Produces error(2)
exec of /home/mydomain/
Thanks
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 "/home/mydomain/Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/home/mydomain/cgi-bin">
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/ "/home/mydomain/cgi-bin/"
ServerSignature email
</VirtualHost>
Produces error(2)
exec of /home/mydomain/
Thanks