LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache disable SSL on a virtual host (http://www.linuxquestions.org/questions/linux-server-73/apache-disable-ssl-on-a-virtual-host-783951/)

cashton2k 01-22-2010 02:44 AM

Apache disable SSL on a virtual host
 
Hi,

Hope you can help.

I'm running Apache with mod ssl, with a php app using ssl. https://www.example1.com

I've made a virtual host to host a simple static site which I dont want SSL for.

When I try and get to the site it redirects me to https://www.example2.com which gives a certifcate error and shows the site from example 1.

Any ideas?

Config below:

<VirtualHost *>
ServerAdmin techsupport@example1.com
DocumentRoot /var/www/html
ServerName example1.com
</VirtualHost>

<VirtualHost *>
ServerAdmin techsupport@example2.com
DocumentRoot /var/www/example2
ServerName example2.com
</VirtualHost>

Thanks for any help

methanigai 01-22-2010 04:10 AM

Is it possible to provide HTTP and HTTPS from the same server?
 
Quote:

Originally Posted by cashton2k (Post 3836172)
Hi,

Hope you can help.

I'm running Apache with mod ssl, with a php app using ssl. https://www.example1.com

I've made a virtual host to host a simple static site which I dont want SSL for.

When I try and get to the site it redirects me to https://www.example2.com which gives a certifcate error and shows the site from example 1.

Any ideas?

Config below:

<VirtualHost *>
ServerAdmin techsupport@example1.com
DocumentRoot /var/www/html
ServerName example1.com
</VirtualHost>

<VirtualHost *>
ServerAdmin techsupport@example2.com
DocumentRoot /var/www/example2
ServerName example2.com
</VirtualHost>

Thanks for any help



see this link here.http://httpd.apache.org/docs/2.0/ssl....html#parallel
HTH :)

cashton2k 01-22-2010 04:17 AM

thanks for the help!

Sorry bit confused as to how I could keep the two sites seperate?


All times are GMT -5. The time now is 01:25 PM.