LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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
  Search this Thread
Old 11-09-2010, 09:46 PM   #1
elok
LQ Newbie
 
Registered: May 2010
Posts: 23

Rep: Reputation: 0
Rewrite for https in apache server


Dear all,

We have a apache server which have a ssl certificate like www.abc.com. We hosting a website is a online giving shop which need ssl cetificate in https. The website of this is www.123.com, it will redirect to https://www.abc.com/giving. Now this website owner don't want to show https://www.abc.com/giving but want to show https://www.123.com.
What can I do to achieve this ? Can I use rewrite function in apache to achieve this? How? or we need to buy any other ssl certificate for www.123.com? How can I install multiple ssl certificate in one apache server?
Thank you.
 
Old 11-10-2010, 12:16 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,187
Blog Entries: 1

Rep: Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047
Hi,

Sure you can use mod_rewrite to redirect https to another site.
BUT, the client will get a warning about visiting a secure site that is using a certificate issued for another site.
So I guess you have to buy a new certificate for www.123.com and install it.
To use SSL vhosts in apache you need a recent version of both apache and openssl and the SSLStrictSNIVHostCheck directive. Take a look here for details

Regards
 
1 members found this post helpful.
Old 11-10-2010, 01:01 AM   #3
elok
LQ Newbie
 
Registered: May 2010
Posts: 23

Original Poster
Rep: Reputation: 0
Thanks bathory.
First, how can I use rewrite function to remain the https://www.abc.com but not display https://www.123.com/giving?
Do you know how can I install multiple ssl certificates in a same apache server, since we already have a ssl certificates for www.123.com but now we need a ssl certificates for www.abc.com.
What can I do for it? and how? Can apache server support multiple ssl certificates in 1 server?
Thank you so much.
 
Old 11-10-2010, 02:11 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,187
Blog Entries: 1

Rep: Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047Reputation: 2047
Hi,

Quote:
First, how can I use rewrite function to remain the https://www.abc.com but not display https://www.123.com/giving?
I'm afraid you can't.
This is an external redirect, so the url in the browser location bar cannot stay the same, while you change server (even though those 2 vhosts are located in the same physical web server).

Quote:
Do you know how can I install multiple ssl certificates in a same apache server, since we already have a ssl certificates for www.123.com but now we need a ssl certificates for www.abc.com.
What can I do for it? and how? Can apache server support multiple ssl certificates in 1 server?
You have to buy another certificate for the 2nd ssl vhost and follow the instructions in the link I gave you above about SNI.

Regards
 
1 members found this post helpful.
Old 11-10-2010, 02:30 AM   #5
elok
LQ Newbie
 
Registered: May 2010
Posts: 23

Original Poster
Rep: Reputation: 0
Thanks bathory.

That means I cannot solve this issues by rewrite function. The only one solution is to buy a new certificate for www.abc.com and install to the same apache server.

Thanks for your kindly help.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
https: connections not working on Apache; also, server-status doesn't work shachter Linux - Server 2 06-28-2010 10:53 PM
[SOLVED] How can I enable the rewrite module for my apache 2.0.53 in redhat linux server? elok Linux - Server 23 06-03-2010 03:16 AM
Apache2 rewrite http to https gabsik Linux - Networking 3 10-26-2006 12:18 PM
apache proxy server rewrite urls slackwarefan Linux - Software 0 10-19-2004 07:58 PM
Use apache to rewrite to external server and keep same browser URL ijsman77 Linux - Software 1 04-09-2004 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:46 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration