CGI and web servers on different machines

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

CGI and web servers on different machines

Post by Thunderstone »



I've had trouble getting webinator to run properly and I'm wondering if
the reason is that my cgi server is technically a different machine from
my web server. This difference is unobservable when in Unix, since they
are in the same directory structure. The IP addresses are different,
however. The cgi script would be run from something like
www.mycgi.com/texis/webinator/search whereas the indexed site would be
www.mysite.com. I was wondering if there's any way to get around this.
Right now, I get the following error when I try to run the cgi script:

002 Can't open source file /usr/campuscgi/freshman/webinator/search: Not a
directory in the function compilefile

Thanks



User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

CGI and web servers on different machines

Post by Thunderstone »




Different ip's don't matter, but the directory view needs to be consistent.
See http://www/vortex/node16.html . I suspect they are not.
It would appear that your cgi hostname sees a different document tree
than your normal hostname. The script needs to be accessible by the cgi.

The url http://www.mycgi.com/texis/webinator/search implies that the search
script could be accessed with http://www.mycgi.com/webinator/search . If this
is not true, you will have to put the script somewhere the cgi program running
on www.mycgi.com can access it and/or adjust your url to the correct directory.


Post Reply