Apache + Subdomain + Squirrelmail

tarsi210

New member
Joined
Mar 14, 2005
Messages
1
Location
Sheffield, IA, USA
Squirrelmail runs by default under /var/www/htdocs/squirrelmail. There's a main redirect in httpd.conf to redirect any access of:

domain.com/squirrelmail

to that path.

I want to create a subdomain (already done) and have Apache redirect mail.domain.com to /var/www/htdocs/squirrelmail.

So, I have the subdomain. I have the manual change httpd.conf as a new VHost as such:

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName mail.domain.com
ServerAlias mail.domain.com
ServerAdmin [email protected]
DocumentRoot /var/www/htdocs/squirrelmail
UseCanonicalName OFF
</VirtualHost>

I get a 403 forbidden when I try to access it. I'm sure I'm missing something extremely simple, would like to hear what the best way to do this is. Thanks.
 
I wouldn't suggest using mail.anything since that is already in use for the mail server ;)

Try webmail.domain.com and work from there.
 
jmstacey said:
I wouldn't suggest using mail.anything since that is already in use for the mail server ;)
Jon, I don't see how using mail as a subdomain could do any harm. It might cause duplicate entries in DNS depending on how much checking DA does, but it shouldn't affect the hostname "mail" from being used in DNS for the mailserver.

Jeff
 
Ok.
Wasn't sure if there would be a conflict with DNS entries trying to do two different things at the same time, since I haven't actually tried it.
 
Perhaps I'm being a bit simplistic, but DNS entries do only one thing.

They map service names to IP#s.

They don't affect any other service.

Jeff
 
Back
Top