virtual web hosting in ubuntu

Status
Not open for further replies.

somaditya majumder

Newbie level 3
Joined
May 3, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,308
Recently, I found that Apache2 Virtual Hosting is really easy in Linux. I used Ubuntu Hoary distribution, which can be termed as updated and polished avtar of Debian. The steps for enabling Virtualhost for Apache2 is as follows -

1. Install Apache-2
#apt-get install apache2

2. Add site specific configuration file in /etc/apache2/sites-available
#vi /etc/apache2/sites-available/example.org

ServerAdmin webmaster@example.org
DocumentRoot /home/example/www/example.org
ServerName example.org:80
CustomLog /home/example/www/log/apache2-access.log combined
ErrorLog /home/example/www/log/apache2-error.log


3. Enable the site
#a2ensite example.org

4. Restart Apache
#/etc/init.d/apache2 restart

Once you are done, point your browser to https://example.org
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…