web host question

melvin

Registered
Just wanted to know, I currently have one website hosted on my emac, www.lenticular.org.nz, I am looking at setting up another website which will be hosted on the same machine, is this possible, do I put both websites in the same webserver/documents folder or how does it work?
 
Sure it's possible ! You need to edit the httpd.conf file and configure a VirtualHost that points blah.com to one folder, and blah2.com to another folder. It's near line 1029 of the file, the part that reads:

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
 
Back
Top