How to Set Up Apache Virtual Hosting


Managing one site on a Web server can be tough enough, and the job is even harder if you have to host multiple client sites on a badly configured setup. If you're running Apache, you can make things easier by setting up virtual hosts, which let you control multiple domains on one IP address, allowing you to specify URLs like http://clientsdomain.com/file_name.html instead of http://yoursite.com/hosted/clients_directory/file_name.html, and letting you forgo setting up domain forwarding with a /srv/www/htdocs/hosted/clients_directory/ file.
If Apache is installed correctly, you can set up virtual hosting easily by editing Apache configuration files. The main .conf files in /etc/apache2 include httpd.conf, error.conf, server-tuning.conf, and a bunch more. These files are set for read-only access for normal users; you must gain root access with the sudo or su command to change them.


Complete Story

Related Technology News

Yahoo! Gives Small Businesses Unlimited Room to Grow Online - Sunnyvale, CA (February 6, 2008) – In a first for the web hosting industry, Yahoo! Small Business today announced a new service that gives small businesses unlimited room to grow online. The new Yahoo! Web Hosting service includes unlimited disk spac...

Host of Internet Spam Groups Is Cut Off - The volume of junk e-mail sent worldwide dropped drastically today after a Web hosting firm identified by the computer security community as a major host of organizations allegedy engaged in spam activity was taken offline, according to security firm...

The Perfect Server - Ubuntu Gutsy Gibbon (Ubuntu 7.10) - This tutorial shows how to set up a Ubuntu Gutsy Gibbon (Ubuntu 7.10) based server that offers all services needed by ISPs and hosters: Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, ...

Open source vs. Windows: security debate rages - It's a topic of fierce debate among high-tech cognoscenti: What's more secure -- "open source" code such as Linux and Apache, or proprietary "closed source" operating systems and applications, Microsoft's in particular? ...