Jump to content
tek-69

setting up mail.blahblah.com

Recommended Posts

For some reason when i type mail.undergroundinfection.net it sends me to my main page when i want it to take me to undergroundinfection.net/uinmail

how do i get it to do that and is it in the apache config or is it a dns thing?

Share this post


Link to post
Share on other sites

well, if undergroundinfection.net points to /usr/local/www/mysite using virtual vhosts, then you can make the directory /usr/local/www/mysite/uinmail and add this to httpd.conf

 

<VirtualHost *:80>
ServerName mail.undergroundinfection.net
DocumentRoot /usr/local/www/mysite/uinmail
</VirtualHost>

Share this post


Link to post
Share on other sites

When i tried that it didn't seem to alter the servers behavior at all and i got the following when i tried to restart the server:

[root@UndergroundInfection ~]service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Fri Oct 14 00:42:23 2005] [warn] _default_ VirtualHost overlap on port 80, the first has precedence                   [  OK  ]

 

This is what I have in my conf pertaining to virt hosts:

<VirtualHost *:80>
ServerName undergroundinfection.net
ServerAlias undergroundinfection.net
ServerAdmin tek@undergroundinfection.net
DocumentRoot /path/to/main
</VirtualHost>

<VirtualHost *:80>
ServerName mail.undergroundinfection.net
DocumentRoot /path/to/main/uinmail
</VirtualHost>

 

It doesn't break the server it just doesn't change anything either. Am i doin something wrong or maybe not doing something at all?

Share this post


Link to post
Share on other sites

no i didn't, but I just did since you brought it to my attn. It seems to be working properly . Now all I gotta do is fiddle with some configuration in the mail server because it can't find it's own pages on the new vhost. thanks for the help guys.

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...