Web Hosting Talk







View Full Version : cgi-wrap extra slash problem


ryu
08-29-2002, 05:31 PM
Hi all,

i am having trouble running most cgi scripts on my current host, which uses CGIWrap.

the scripts keep being unable to find files because an extra slash keeps getting added to the path and i don't know how to change the scripts to avoid this.

since it happens with almost all the scripts i've tried, i'm guessing the problem has got to be in the CGIWrap settings.

eg. http://www.hullo.com/test
comes out something like /public_html/hullo//test

or http://www.hullo.com/cgi-bin/blah.cgi
comes out as /public_html/hullo//cgi-bin/blah.cgi

etc.

an extra slash keeps popping up wherever there's a subdirectory. and it's always only ONE extra slash. this is driving me nuts! i've searched the web for a long time and haven't found anything on this that could help me to fix the problem.

has anyone ever encountered this before, and do you know how to fix it? i've brought it up to my webhost in the past but it was just suggested that i use some other programs, the problem itself never got fixed.

please please please help if you know the answer, thank you!!! :)

Perlboy
08-29-2002, 10:09 PM
Hey,

Sounds like your host has something a bit stuffed with your setup in Apache.

I would guess they have set the DocumentRoot to:
/public_html/hullo/

And then when cgi-wrap comes along it adds a prefixed / so you get a // effect.

Get them to change it to simply:

DocumentRoot /public_html/hullo

See ya,

Stuart

ryu
08-30-2002, 09:27 PM
wow. could it really be something that simple? nyargh!!!

thanks a bunch perlboy, i'll pass this on to him and keep my fingers crossed!