image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old December 31st, 2005, 03:11 PM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mattt is on a distinguished road
Exclamation Apache Help: Not finding localhost

My browser can not resolve http://localhost/, but http://127.0.0.1 works fine.

This is the Virual Host section that I'm using in /etc/httpd/httpd.conf

### Section 3: Virtual Hosts
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
DocumentRoot /Library/WebServer/Documents
ServerName localhost
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot /Users/mattthiessen/Sites/clients/bpwww
ServerName bpwww
</VirtualHost>

The settings in NetInfo Manager are

/machines/localhost/
myname = 127.0.0.1
name = localhost

However, after turning on box with Fedora Core 4 that is on the same network http://localhost brings up the index.php page on that machine.

Is there anything else I need to set to the http://localhost to work?

Last edited by mattt; December 31st, 2005 at 03:25 PM.
Reply With Quote
  #2  
Old January 1st, 2006, 08:13 PM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mattt is on a distinguished road
It was a DNS issue. My problem was in the lookup order. Found using:

lookupd -configuration

My problem was fixed after following these instructions:

http://www.geektimes.com/macintosh/o...3/and/dns.html
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail on localhost w/ php .jeremy_a> Unix & X11 1 November 8th, 2003 09:27 AM
Virtual PC and Localhost Dris Mac OS X System & Mac Software 2 October 18th, 2003 11:26 AM
Apache won't respond to "localhost" or "127.0.0.1" mattimpact Unix & X11 9 May 24th, 2002 09:19 AM
localhost? mikerwpi Mac OS X System & Mac Software 2 March 27th, 2001 07:29 PM
I can't connect to anything but localhost.... kleinboy Mac OS X System & Mac Software 0 January 10th, 2001 04:22 PM


All times are GMT -5. The time now is 06:35 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.