?
Solved

Apache redirect SSL on Centos 5.2

Posted on 2009-04-01
2
Medium Priority
?
729 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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

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…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

752 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