Re: [apache-ssl] problem on Virtual Host
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [apache-ssl] problem on Virtual Host



Marcos Lloret wrote:
> 
> hi,
> 
>     i have two domains:
>             www.domainone.com  -->  is secure.. runs on port 443
> 
>             www.domaintwo.com --> is insecure.
> 
>     both sharing the same ip.
> 
>     my httpsd.conf is like:
> 
>         <VirtualHost xxx.xxx.xxx.xxx:80>
>         SSLDisable
>         Port 80
>         ServerAdmin webmaster@domaintwo.com
>         DocumentRoot /home/httpd/www.domaintwo.com
>         ServerName www.domaintwo.com
>         TransferLog /usr/local/apache/logs/domaintwo_access.log
>         ErrorLog /usr/local/apache/logs/domaintwo_error.log
>         </VirtualHost>
> 
>         <VirtualHost xxx.xxx.xxx.xxx:443>
>         SSLEnable
>         Port 443
>         ServerAdmin webmaster@domainone.com
>         DocumentRoot /usr/local/apache/httpsdocs
>         ServerName www.domainone.com
>         TransferLog /usr/local/apache/logs/domainone_access.log
>         ErrorLog /usr/local/apache/logs/domainone_error.log
>         </VirtualHost>
> 
> when i access to   http://www.domainone.com
>     it says:
>             Forbidden
> 
>             You don't have permission to access / on this server.
> 
>     i would like to have here a automatic link to
> https://www.domainone.com
> 
> when i access to    http://www.domaintwo.com
>     it says:
>              Forbidden
> 
>             You don't have permission to access / on this server.

  http://www.apache.org/docs-1.2/mod/mod_dir.html#directoryindex

> 
>     and if i write   https://www.domaintwo.com   .. it appears
> https://www.domainone.com
> 
> how can i solve that??

Give them their own IPs.

cheers,
Adam
--
Adam Laurie                   Tel: +44 (181) 742 0755
A.L. Digital Ltd.             Fax: +44 (181) 742 5995
Voysey House                  
Barley Mow Passage            http://www.aldigital.co.uk
London W4 4GB                 mailto:adam@algroup.co.uk
UNITED KINGDOM                PGP key on keyservers