[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Virtual Web Hosting






> 
> OK -- First can Linux(apache) host virtual servers with only one IP
> address??
> i.e.	www.mydomain.com 192.168.1.2 /home/httpd/html/
> 	linux.mydomain.com 192.168.1.2 /home/user/public_html
> 

Yes.

In httpd.conf, you'll use something like this.

NameVirtualHost 123.456.789.1
<VirtualHost www.mydomain.com>
Document Root /home/httpd/html
ServerName www.mydomain.com
ErrorLog logs/mydomain/error_log
TransferLog logs/mydomain/access_log
</VirtualHost>

<VirtualHost www.myotherdomain.com>
DocumentRoot /home/user/public_html
ServerName www.myotherdomian.com
ErrorLog logs/myotherdomain/error_log
TransferLog logs/myotherdomain/access_log
</VirtualHost>

NameVirtualHost 200.654.32.1
<VirtualHost www.yetanotherone.com>
DocumentRoot /home/user2/public_html
ServerName www.yetanotherone.com
ErrorLog logs/yetanotherone/error_log
TransferLog logs/yetanotherone/access_log
</VirtualHost>

The above sets up 3 domains between 2 IP addresses. There is no limit to
"virtual servers" per IP address.

If you have problems, be sure to set up your access.conf, httpd.conf, and
srm.conf properly.

- Kara

-------------------------------------------------------------
Kara Pritchard                        	Phone: 217-698-1694
Red Hat Certified Engineer
Linux Users of Central Illinois		kara@luci.org
LUG Project Manager - Linux.com		kara@linux.com
-------------------------------------------------------------


--
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.