Msg#: 3677 posted 12:40 pm on Jun 22, 2004 (gmt 0)
I am wondering if it's the nature of cgi scripts to not parse if you upload them to IP address before dns nameservers resolve. When I check the page in form ipnumber/~username I do not see the output.. I thought this happened once before and things were fine once the dns resolved and I used the domain name itself. Someone said the tilde creates problems.. Does that make sense? I want everything to work when dns resolves and can't tell if it's a script error or something in the nature on cgi scripts using a tilde. Thanks.
I develop all of my sites using a 192.168.0.0/~vectorj/site.com/script.cgi format, and haven't had a problem, except when setting cookies (you need to write some additional code to properly set cookies for an IP rather than a FQDN).
Generally, CGI's don't need DNS to function. But maybe the specific CGI includes an URL that can't be resolved.
The tilde shouldn't be a problem, either.
I'm going to take a wild stab here and guess you are setting up a CGI on a Mac OS X machine in a /Users/[usernmae]/Sites directory. In that case, your problem may be that the CGI is not in a place where your Apache Web server (currently) recognizes it as an executable script. (Am I close?)
Thanks guys. I'm not too technical so don't know the answer but did try it with a different domain on same host and the scripts now work after dns resolved.. So I'm not sure but it does seem like it didn't before!