Solved

Apache redirect SSL on Centos 5.2

Posted on 2009-04-01
2
719 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
ID: 24046012
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
ID: 24046063
Any config you can lend?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

912 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

21 Experts available now in Live!

Get 1:1 Help Now