Thread: Apache
View Single Post
  #5  
Old 17th May 2009, 16:47
fastformer fastformer is offline
Junior Member
 
Join Date: May 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default A better way?

Hi,

So most of the tutorials talk about ln -s ...
Here's a better way:

[1] cp /etc/squirrelmail/apache.conf /etc/apache2/sites-available/squirrelmail
[2] vi /etc/apache2/sites/available/squirrlemail
and modify Alias /squirrelmail /etc/squirrelmail
to Alias /webmail /etc/squirrelmail
[3] a2ensite squirrelmail

Do similar for phpmyadmin.

next for the site you can do this:
[1] go to ispconfig and create a site with your domain name. ie: domain.tld and set it to auto all subdomain by setting it to *.
[2] cd /etc/apache2/sites-available
[3] mv default default.bak
[4] cp domain.tld.vhost default

Voila!!!

Hope this helps.
Reply With Quote