Biocide Posted January 31, 2007 Share Posted January 31, 2007 OS: Ubuntu (dapper) Tool: Webmin The Problem: I am able to connect to my virtual servers on localhost via the unique IP address that i have given each one of them. However I am not able to view the page when typing in just the domain name. I'm sure the answer to this is easy, but i've just been running into brickwalls all day. Quote Link to comment Share on other sites More sharing options...
trq Posted January 31, 2007 Share Posted January 31, 2007 You need to define them within your /etc/hosts file. An extract from mine might give you an example. 127.0.0.1 oblivion.thorpesystems.com oblivion localhost #################################################### # Router. 10.1.1.1 dlink.thorpesystems.com dlink #################################################### # My main machine (Dell). 10.1.1.2 oblivion.thorpesystems.com oblivion #################################################### # My iMac. 10.1.1.3 utilserv.thorpesystems.com utilserv # Webserver. 10.1.1.3 thorpesystems.com 10.1.1.3 www.thorpesystems.com 10.1.1.3 mail.thorpesystems.com 10.1.1.3 overlay.thorpesystems.com 10.1.1.3 blog.thorpesystems.com 10.1.1.3 drupal.thorpesystems.com #################################################### # My firewall machine. 10.1.1.4 firewall.thorpesystems.com firewall #################################################### # My laptop. 10.1.1.5 toshi.thorpesystems.com toshi #################################################### # Storage 10.1.1.6 store.thorpesystems.com #################################################### # CVS / Mysql / Postgres. 10.1.1.7 cvs.thorpesystems.com cvser 10.1.1.7 mysql.thorpesystems.com 10.1.1.7 postgres.thorpesystems.com #################################################### # Stace's 10.1.1.100 stace.thorpesystems.com stace Quote Link to comment Share on other sites More sharing options...
Biocide Posted January 31, 2007 Author Share Posted January 31, 2007 So if i understand correctly, I will need to define every single domain/subdomain in my hosts file and their assigned IPs? This would not be the hostname, hosts.allow, hosts.deny, or the host.conf? Quote Link to comment Share on other sites More sharing options...
trq Posted February 1, 2007 Share Posted February 1, 2007 So if i understand correctly, I will need to define every single domain/subdomain in my hosts file and their assigned IPs? That would be correct. See man hosts For more detail. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.