LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-10-2008, 04:54 AM   #1
pmvp5
LQ Newbie
 
Registered: Oct 2008
Location: Italy
Posts: 2

Rep: Reputation: 0
Question mod_proxy under Apache2 not working with some https sites


Hi all,

I have this need to setup a reverse-proxy server, the situation is as follows:

Server_1:
Debian4 + Apache2, port 80/443 open to public
ssl cert 128-bit is installed on one host, publicly signed, let's say https://www.111.com/

Server_2:
https://www.222.com/app/ is a working web application site, not open to public but is accessible only from Server_1 via 443.
ssl cert on this site is private and not publicly signed.

The two servers sits on completely different subnets, they communicate over the Internet.
Basically I need to publish the site https://www.111.com/ for the public with the content and interface of https://www.222.com/app/.

On Server_1 (www.111.com) I enabled mod_proxy, mod_proxy_http, mod_proxy_connect, ssl, and configured the site as follows.

NameVirtualHost *:443
<VirtualHost *:443>
ServerName www.111.com
DocumentRoot /somepath/111/
<Directory /somepath/111/>
Options FollowSymLinks MultiViews
DirectoryIndex main index.htm index.html
AllowOverride All
Order allow,deny
allow from all
</Directory>

SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

SSLCertificateFile /etc/apache2/ssl/cert.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
SSLCACertificateFile /etc/apache2/ssl/intermediate.crt

ProxyRequests Off

SSLProxyEngine On

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / https://www.222.com/app/
ProxyPassReverse / https://www.222.com/app/
</VirtualHost>


Now I restarted apache2, accessed https://www.111.com/ and I saw the contents of the second server on top of it, but some images(.png, .gif) are not shown and so does .css it seems like.
https://www.222.com/app/ has login to the site (written in .jsp) but neither this seem to be working.
I tried to change the destination site (in place of Server_2) to some other public http/https site and they seem to be working correctly...
I've been changing the config of the site but just doesn't seem to be going in the right direction,, did anyone have a similar problem and was able to solve it?
Could the un-signed certificate on www.222.com be the cause of the problem?

Thanks!
 
  


Reply



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
Squid and https sites 2buck56 Linux - Security 6 06-14-2007 03:06 AM
Client cannot open few https://.. sites i.e. secure sites rajeshghy Linux - General 1 11-02-2006 06:30 AM
Apache2 and mod_proxy Maniac0Maniac Linux - Software 3 04-17-2006 06:51 PM
HTTPS not working under Apache2 and OpenSSL pennywind Linux - Security 7 12-29-2005 01:45 PM
apache2 mod_proxy - swiki bkeating Linux - Software 0 10-28-2003 04:58 PM

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

All times are GMT -5. The time now is 01:38 AM.

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