Solved

Apache redirect SSL on Centos 5.2

Posted on 2009-04-01
2
718 Views
Last Modified: 2012-05-06
I have a webserver "web01" hosting multiple domains on 1 IP. I have a virtual hosting setup.

One of the virtual hosts listens on port 443 and others on port 80.
<VirtualHost 172.17.1.101:443>
       ServerName www.techdomain.com
   ........etc etc

I want to redirect port 443 for server https://mail.domain.com to another server on IP 172.17.1.102. The server at 172.17.1.102 is configured properly to listen for port 443 webmail.

I create a Virtual host.

<VirtualHost 172.17.1.101:443>
   ServerName mail.domain.com
   RewriteLog "/var/log/httpd/mail.domain.com.rewrite.log"
   RewriteLogLevel 9
   RewriteEngine     On
   RewriteRule       ^(.*)$        https://mail.domain.com$1  [P]
   ServerAlias mail.domain.com
</VirtualHost>

Then I change the hosts file to point mail.domain.com to 172.17.1.102

My problem is, if I redirect on port 80 to port 80, It works fine but when I redirect on 443 to 443, it breaks www.techdomain.com and the redirect for mail.domain.com does not work either.

Any advice?
0
Comment
Question by:ralphcarter2008
2 Comments
 
LVL 4

Expert Comment

by:Multipath
Comment Utility
I would suggest installing mod_proxy in apache and using it to reverse proxy techdomain.com/webmail to your back side server this will retain your techdomain.com config.  Also this will allow you toshare a cert between the two systems as you will actually be hitting the main ssl port.
0
 
LVL 1

Accepted Solution

by:
ralphcarter2008 earned 0 total points
Comment Utility
Any config you can lend?
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now