[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache-ssl and Virtual Hosts



>Here is what I want to do:

>mydomain.com and mail.mydomain.com have same IP address.

>When a user types mail.mydomain.com I want to go directly to
>/var/www/mail/index.php file. When the user types mydomain.com then the
>user sees /var/www/index.html.

>However I also want to automatically use SSL when the user points the
>browert to mail.bapat.net. 
>If I put the above lines in /etc/apache-ssl/httpd.conf apache-ssl
>doesn't start. gives error and stops.

>How do I achieve both these things?

>Thanks,
>-nak

A crass solution would be to point your mail virtual host to mail/index.html Then that index.html just automatically redirects to https://mail.bapat.net/index.php.



-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: