Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Dan Turner on July 18, 2002, 10:44:58 AM
-
Just installed fresh 5.5 and was configuring the new system.
I was running 4.12 some cgi scripts on the old machine and decided to
load them on the 5.5 version.
Old machine was handling 3 virtual domains and cgi scripts were in one of the virtual domains cgi-bin directory.
On 5.5 apache reports 404 not found when trying to run the scripts.
( Yes I have CGI PHP turned on in the IBAY)
Here I discovered http://www.virtualdomain1/cgi-bin/test.cgi shows 404 not found but http://www.primarydomainibay/virtualdomainibay/cgi-bin/test.cgi does work.
All the scripts run fine when called thru the primary ibay but not from their virtual domain url.
The only mods I have made to the machine from a fresh install was Update blade 1, Installed AWSTATS and Gordons ezmlm and they all work fine.
Can anyone else reproduce this or do I have an isolated problem ??
Dan
-
Dan,
No, it's not you. I have just tried it and it doesn't work. What does tho is
http://www.virtualdomain1/ibay_name/cgi-bin/test.cgi
where ibay_name is the name of the ibay associated with the virtual domain.
I had a look around at the httpd.conf templates and found an error in the VirtualHost templates. I have reported it to bugs@e-smith. In the meantime you can rectify it by
# pico /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent
change line 51 which reads
$OUT .= " ScriptAlias /$ibay/cgi-bin $basedir/cgi-bin\n";
to
$OUT .= " ScriptAlias /cgi-bin $basedir/cgi-bin\n";
and save.
Expand the template
# /sbin/e-smith/expand-templates /etc/httpd/conf/httpd.conf
# /etc/rc.d/init.d/httpd-e-smith restart
check out the results in a new browser.
Jon
-
This post might have some relevance to your problem:
http://forums.contribs.org/index.php?topic=14523.msg55465#msg55465
-
Thanks Jon.... You are so correct and that was the problem.
Thanks for submitting the bug report.
Your change did solve the problem.
Btw the way for those that follow Jon's fix post.
The call to expand-templates should be singular on template so should
read
# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
# /etc/rc.d/init.d/httpd-e-smith restart
Again Thanks Jon
Dan
-
oops- typo. Thanks Dan