Apache 2.2 setup on Debian, question about name servers
I'm setting up my Debain machine to host my homepage, and I have installed Apache 2.2, and a browser-based GUI for it called Webmin. I have a domain name with co.cc, it is www.patmore.co.cc. On the domain name site, there are two fields for name servers. Presently, they are set to the name servers for my hosting company.
Apache is working on my machine. When I type my host name in my browser, it goes to index.html in the document root, as it should. When I key in my Debain machine's IP address on another machine on the same network, it also goes to index.html.
Attached, there is a screenshot of the Virtual Server Details in the Webmin GUI. I think I have the server name set right, but what do I type in the Address field? What do I need to type in for my name servers on the domain name site?
Any assistance would be greatly appreciated.
Could you show us the content of the files in /etc/apache2/site-available/.
/etc/apache2/sites-available only contains one file: default-ssl. Should it contain more than one file if I have a virtual host set up in the GUI? Here are the contents:
Normally on Apache2 with Debian, Virtual Hosts are created in /etc/apache/sites-available and the tool 'a2ensite <vhost>' does the donkey work of adding links into /etc/apache/sites-enabled. From their a reload of Apache will allow your Virtual Host to work. This keeps things tidy, separate and easy to manage.
That said, it's not the only way to add a virtual host. It's not uncommon to find them in httpd.conf or even on the end of /etc/apache2/apache2.conf in Debian. Webmin may just do this - but I don't know. It's worth checking.
To test the virtual host you can't just call the IP of the server, because that calls the default site. The host header needs to be set to the name of your virtual host. Probably the easy way to do this (for testing) is to add an entry to your hosts file pointing: www.patmore.co.cc to the IP of the server. Then, when you call the site from your favorite browser the host header should be correct. Naturally, other hosts you want to test this with (lin or win) will need to have this entry in their hosts file until you set it in stone (dns). Don't forget to remove the host entries when done testing.
For the outside world to reach it, you'd just set your DNS to resolve www.patmore.co.cc to the IP of your server.(Personally I would also map it without the www too).
Hope that helps.
Reverend Majestic Scamaster
419 Christian Church of the Debian
|All times are GMT -5. The time now is 03:45 AM.|