LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 01-22-2010, 02:44 AM   #1
cashton2k
Member
 
Registered: May 2004
Posts: 46

Rep: Reputation: 15
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
 
Old 01-22-2010, 04:10 AM   #2
methanigai
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Rep: Reputation: 0
Is it possible to provide HTTP and HTTPS from the same server?

Quote:
Originally Posted by cashton2k View Post
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
 
Old 01-22-2010, 04:17 AM   #3
cashton2k
Member
 
Registered: May 2004
Posts: 46

Original Poster
Rep: Reputation: 15
thanks for the help!

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable SSL v2 in Apache cooljai Linux - Server 3 10-15-2009 11:31 AM
Solutions to Apache SSL Virtual Host woes (for dynamic IP too) Silly22 Linux - Software 2 10-14-2009 05:07 PM
Apache with wildcard SSL and virtual host crispytwo Linux - Server 2 04-28-2009 08:56 PM
Apache 2 / SSL and virtual host under GNU/Linux Debian Etch - http and https scls19fr Linux - Server 0 10-09-2008 10:11 AM
Apache SSL - how to virtual host two or more secure websites on the same machine? bjoshi Linux - Networking 0 08-30-2001 07:01 PM


All times are GMT -5. The time now is 11:15 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration