Solved

Apache redirect SSL on Centos 5.2

Posted on 2009-04-01
2
725 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

732 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