Computing.Net > Forums > Linux > Apache Virtual Hosting: Unknown Hos

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Apache Virtual Hosting: Unknown Hos

Reply to Message Icon

Name: marty
Date: May 12, 2003 at 10:27:01 Pacific
OS: SuSE Linux 8.2
CPU/Ram: P4 2.4Ghz/512 MB
Comment:

Attempting to use virtual hosting on my local web server (stand alone). I made the appropriate configurations in /etc/httpd/httpd.conf for virtual hosting, but receive "unknown host" when accessing these hosts and when starting apache (rcapache start). I also attempted to use different domain names with the same result.

Any ideas? Do these hosts have to be listed in /etc/hosts?



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: May 12, 2003 at 16:04:02 Pacific
Reply:

Somewhere, you need to have in place something that translates a name to an IP number. Most people do this with a DNS server. Some do this with a WINS server. In a limited sense you could do it with an /etc/hosts file. The httpd.conf file tells the web server what to do with the request once it arrives.


0

Response Number 2
Name: jsototech
Date: May 12, 2003 at 18:47:20 Pacific
Reply:

Not sure what your setup is. If your using apache on Linux... check /etc/resolv.conf... It should contain the IP's and names of your ISPs nameservers.

Example:
nameserver 127.0.0.1
nameserver 64.208.159.244
nameserver 64.208.159.243
nameserver 24.206.159.244
nameserver 24.206.159.243
search ns2kw.shawcable.net
search ns1kw.shawcable.net
search ns2kw.tx.shawcable.net
search ns1kw.tx.shawcable.net

If you're using windows, make sure Gateway and DNS are properly configured.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


file/dir permission quest... Shell Script Error



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Apache Virtual Hosting: Unknown Hos

Apache, Virtual Host www.computing.net/answers/linux/apache-virtual-host/16547.html

Virtual Host on apache www.computing.net/answers/linux/virtual-host-on-apache/11028.html

Virtual Hosting apache 2.0.48 www.computing.net/answers/linux/virtual-hosting-apache-2048/14161.html