Welcome to WebmasterWorld Guest from 54.234.45.10

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

scripts before dns resolves

do cgi scripts not parse before dns resolves

     
12:40 pm on Jun 22, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:July 10, 2000
posts:153
votes: 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.
3:51 pm on June 22, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 1, 2004
posts:137
votes: 0


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).
3:56 pm on June 22, 2004 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 1, 2003
posts:815
votes: 0


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?)

2:03 pm on June 23, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:July 10, 2000
posts:153
votes: 0


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!
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members