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

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.

I have achieved this by using following:
in /etc/apache/httpd.conf
NameVirtualHost *
<VirtualHost *>
ServerName mail.bapat.net
DocumentRoot /var/www/mail
</VirtualHost>

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


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



Reply to: