On Tue, Feb 26, 2013 at 3:13 PM, Bruce Whealton <bruce at futurewaveonline.com> wrote: > So, I decided to install CentOS on a separate system in my local home > (business) network. I know the internal IP and the external IP for the > router. I will be working with a dynamic IP for a while, from our ISP, > provided by our cable company. It's almost always the same but it's not > static. > > When I setup Linux on my VirtualBox, I setup a domain of sandbox.dev and IP > 127.0.0.1 inside the Windows host file. Inside VirtualBox, I forwarded the > port 2222 to 22 for SSH and 8080 to 80 for HTTP. Then from Windows I could > connect to my server with http://sandbox.dev:8080/ > Now, I tried to setup the httpd.conf file on the other system running Apache > to use a domain name. I followed a tutorial on the web. I did backup the > file. Here are my questions: > 1) The tutorial suggested that I setup a root for all websites of /www, > which is fine. So, then if I wanted to setup domain1.com, I would create a > directory of /www/domain1.com, does that sound right? Then I would put the > site files in a html folder, perhaps? Note that you can put multiple virtual servers on the same host and they are then identified by the host header the browser sends. If you only want to host one site you can greatly simplify the configuration - and make it not care about what name or IP you used to reach it. If you do that, just leave the default DocumentRoot at /var/www/html and put your site there. -- Les Mikesell lesmikesell at gmail.com