I have installed these too packages to /srv/www/htdocs/squirrelmail and /srv/www/htdocs/phpMyAdmin . When i had no domain for my ip address i can reach them, but now, when i set up the domain, i cant reach these too applications. What should i do, to reach like this: domain.com/webmail and domain.com/phpmyadmin .
Posts: 31,872
Thanks: 689
Thanked 4,185 Times in 3,202 Posts
Thats normal as the default vhost works onyl if you do not assign any other site to this IP. The recommended and only reliable way of running phpmyadmin and webmail is to create a new website like webmail.yourdoamin.com and install a webmail client of your choice into this website.
thx, but its not working for me, first the problem is, when i add my domain, in the vhost file the documentroot is this:
DocumentRoot /srv/www/htdocs/squirrelmail/maindomain.com/web
Why?
but if i add an other site with a non-main domain, then it works and adds:
DocumentRoot /srv/www/otherdomain.com/web
Posts: 31,872
Thanks: 689
Thanked 4,185 Times in 3,202 Posts
You can not add the main domain as a vhost in apache. Please change the hostname of your server so that it is not identical with any domain e.g. that you want ot use as vhost, change it e.g. to server1.yourdomain.com as we use it in the perfect setup guides for that reason.
Recent comments
1 day 17 hours ago
2 days 2 hours ago
2 days 5 hours ago
2 days 6 hours ago
2 days 7 hours ago
2 days 9 hours ago
2 days 10 hours ago
2 days 12 hours ago
3 days 4 hours ago
3 days 4 hours ago