LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   apache redirect question (https://www.linuxquestions.org/questions/linux-networking-3/apache-redirect-question-246166/)

twk 10-22-2004 08:31 PM

apache redirect question
 
I've installed squirrelmail in /usr/share/squirrelmail

how do I configure it so that I can access it via
http://www.mydomain.com/webmail

plus any of the domain I host on my server can use /webmail to access squirrelmail

I've been readin some of the apache2 doc, seems virtualhost tag should be able to do what I want.....

twk 10-22-2004 08:41 PM

Code:

<VirtualHost my_ip>
        DocumentRoot /usr/share/squirrelmail/src/
        ServerAdmin user@mydomain.com
        ServerName mail.mydomain.com
        DirectoryIndex index.html index.php index.htm index.shtml
</VirtualHost>

Found above from another post here which does similar to what I want. But it seems this way it's bind to one domain (mydomain.com). How do it for all my domains?

Demonbane 10-23-2004 01:03 AM

You don't really need to setup virtual hosts, try:
Code:

Alias /webmail /usr/share/squirrelmail


All times are GMT -5. The time now is 05:59 PM.