I've a important problem I've set a server with debian 5 and ispconfig 3 up.
I created two sites my by this sites it only comes the apache default template "It works" .
How can I fix that?
I have the same problem
I tried going through the apache settings, but it didn't work. Help please.
Found a fix
ok, the reason why it doesn't allow for this to work properly is in the vhosts. To fix this follow as instructed:
1. open "/etc/apache2/sites-avaliable/default" with your favorite editor
2. under "<VirtualHost *:80>" and right above "ServerAdmin webmaster@localhost" add "ServerName localhost"
3. save and exit your text editor
4. restart apache by invoking the command "apache2ctl -k restart"
5. go to your ispconfig and create a site with your server's domain name ie. domain.tld, and like normally add the aliases either www. or *. and save
6. wait a few minutes (2-3 mins) and voila it should be all working. You can test this, by modifiying the index.html file which would be under /var/www/domain.tld/web/ and adding a line. You should be able to see that line no matter whether you type in www.domain.tld or domain.tld.
Hope this helps.
Editing this file is not nescessary. You could have just added the IP address of your server to the IP list in ispconfig and then just select the IP for your sites instead of * in the website settings.
A better way?
So most of the tutorials talk about ln -s ...
Here's a better way:
 cp /etc/squirrelmail/apache.conf /etc/apache2/sites-available/squirrelmail
 vi /etc/apache2/sites/available/squirrlemail
and modify Alias /squirrelmail /etc/squirrelmail
to Alias /webmail /etc/squirrelmail
 a2ensite squirrelmail
Do similar for phpmyadmin.
next for the site you can do this:
 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 *.
 cd /etc/apache2/sites-available
 mv default default.bak
 cp domain.tld.vhost default
Hope this helps.
|All times are GMT +2. The time now is 02:30.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.