PDA

View Full Version : Squirrelmail Configuration & httpd


johnniewalker
09-30-2004, 02:58 PM
Dear all,

Got a problem after I installed Squirrelmail - used the default installation directory /var/www/html/webmail, and the vritual host config below:

<VirtualHost IPAddress:80>
ServerName hostname
ServerAlias mail.*
ServerAdmin postmaster@hostname
DocumentRoot /var/www/html/webmail
</VirtualHost>

Now, when I go to http://hostname/ every works great and I can logon to Squirrelmail. However, what I really want is to have http://hostname/webmail as the URL for squirrelmail, and then install my web page in the root. How can I do this? I've tried to adjust the above config but can't get it to work.

Appreciate this is not Qmail-specific, but I hope someone can provide a really quick answer!

Many thanks in advance,

John

Pebcak
09-30-2004, 03:51 PM
I had the same problem the first time I installed QMR. I solved it by not putting in the virtual host in my httpd.conf. I have no doubt theres a better way but it works well enough for my purposes. Now I have to go to http://domainname/webmail as you are wanting to do.

DBA_Frog
10-01-2004, 09:59 AM
you need to add a domain for the mail domain in the sub-folder ../webmail::

# Virtual host mail.domain.com
<VirtualHost xxx.xxx.xxx.xxx>
DocumentRoot /var/www/html/domain/webmail
ServerAdmin postmaster@domain.com
ServerName www.mail.domain.com
ServerSignature email
ServerAlias mail.*
</VirtualHost>

with this example www.mail.domain.com now directs to the sub-folder ../webmail.

This is the accepted naming convention for mail severs on networks.

johnniewalker
10-13-2004, 11:43 AM
I had the same problem the first time I installed QMR. I solved it by not putting in the virtual host in my httpd.conf. I have no doubt theres a better way but it works well enough for my purposes. Now I have to go to http://domainname/webmail as you are wanting to do.

OK - tried this first and it works - I don't have a registered domainname, only a fixed IP address, so IP_ADDRESS/webmail works great for me. Thanks for the replies.