you need to add:
<VirtualHost xxx.xxx.xxx.xxx:80>
SSLDisable
Redirect / https://www.domainone.com/
Port 80
ServerAdmin webmaster@domainone.com
DocumentRoot /home/httpd/www.domainone.com
ServerName www.domainone.com
TransferLog /usr/local/apache/logs/domainone_access.log
ErrorLog /usr/local/apache/logs/domainone_error.log
</VirtualHost>
Also add an SSLCertificateFile and SSLCertificateKeyFile directive to
your SSL Vhost. The forbidden problem with domain two looks like a
problem with directory permissions. Try making the directory 755.
As to getting https://domain2.com to work--you can only serve one
certificate per IP address when you use port 443. So either pick a
different port for domain 2 or get another IP address.
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.
>
> and if i write https://www.domaintwo.com .. it appears
> https://www.domainone.com
>
> how can i solve that??
>
> thanks in advance,
>
> marcos
> marcos@ival.es