homepage Welcome to WebmasterWorld Guest from 54.242.231.109
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
scripts before dns resolves
do cgi scripts not parse before dns resolves
jilla




msg:433454
 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.

 

VectorJ




msg:433455
 3:51 pm on Jun 22, 2004 (gmt 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).

timster




msg:433456
 3:56 pm on Jun 22, 2004 (gmt 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?)

jilla




msg:433457
 2:03 pm on Jun 23, 2004 (gmt 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!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved