LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-07-2004, 08:52 AM   #1
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44
Apache2 SSL Reverse Proxy


Hi all,

I love this site and forum (homepage). I have been able to accomplish things in Linux I never thought I could ever do. I have been playing with Linux for only about 2yrs (heck I've only been in the IT field for 2yrs..lol), but only seriously the last 4 mnths. So yes I have that Newbie thing going on. But I learn pretty quick.

You people are great. I searched for a thread that would answer my l problem. No Luck (hopefully I didn't miss it). So here is my first cry for help

I replaced https with xxxxs in this thread for the "No url in threads until 5 posts rule" being enforced

I have it setup SSL from client to the Reverse Proxy
I want set up SSL communication from the Reverser Proxy to the Backend server
Also I have it set up for LDAP authentication just to get to the Reverse Proxy URL (xxxxs://myproxy.com) which works great!!!


Here is my scenario

I have an https:// site running on an IIS 5.0 server (xxxxs://somesite.com) behind an off-campus firewall. I am setting up a Fedora/Apache 2.0.48 as the SSL Reverse Proxy to access it. The Proxy server IP is allowed in the firewall rule set.

So far this is my Proxy releated setup in httpd.conf.....I also have a seperate ssl.conf

# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
<IfModule mod_proxy.c>
#ProxyRequests On
#
<Proxy *>
Order deny,allow
# Deny from all
Allow from all
</Proxy>
ProxyPass /overthere/ xxxxs://somesite.com/
#
<Location /overthere/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /overthere/
ProxyHTMLURLMap /overthere /overthere
RequestHeader unset Accept-Encoding
</Location>


#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
ProxyVia On
#
# To enable a cache of proxied content, uncomment the following lines.
# See xxxx://httpd.apache.org/docs-2.0/mod/mod_cache.html for more details.
#
<IfModule mod_disk_cache.c>
CacheEnable disk /
CacheRoot "/var/cache/mod_proxy"
</IfModule>
#

#</IfModule>
# End of proxy directives.



So far this setup works when I type in xxxxs://myproxy.com/overthere/ from any machine inside or outsite the network

I get the index page display for xxxxs://somesite.com So up to that point I am happy

However on the index page there are links pointing to other https servers behind the same firewall. I click on the links and get Page not Found display

I know there are supposed to be entries in the ssl.conf for SSLProxying. Im just not sure how this part should be set up

I know these are the related directives for it

SSLProxyMachineCertificatePath
SSLProxyMachineCertificateFile
SSLProxyVerify
SSLProxyDepth
SSLProxyCACertificatePath
SSLProxyEngine
SSLProxyCACertificateFile

My main questions are
1) Do I need to have a public client certificate or server certificate on the reverse proxy to communicate with the backend https server?
2)Do I need a certificate (client or server) for each https server the links are pointing to from the xxxxs://somesite.com index page?
3)Or Do i just need a certificate (client or server) just for the the main xxxxs://somesite.com



Hope I gave enough details to go on....Any help would be appreciated
 
Old 05-13-2004, 08:13 AM   #2
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Original Poster
Rep: Reputation: 44
I got it working now

Now I just have to get my links to work through the proxy.....

From what I've been reading, it sounds like mod_perl using ProxyRewrite will make me happy
 
Old 03-04-2006, 11:37 AM   #3
twistedpair
Member
 
Registered: Jan 2004
Posts: 71

Rep: Reputation: 15
Quote:
Originally Posted by doublejoon
I got it working now

Now I just have to get my links to work through the proxy.....

From what I've been reading, it sounds like mod_perl using ProxyRewrite will make me happy

I have not done this before with apache, but have done so with squid. I would assume that each would resolve requests for names in the same way. That being the case, you should be sure that your resolv.conf points to an internal DNS server which can resolve the names of these other URL's to internal IP addresses. Alternatively, be sure they are all in your /etc/hosts file. I think that will do the trick.
 
Old 03-17-2006, 12:52 PM   #4
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Original Poster
Rep: Reputation: 44
squid does https now?
 
Old 08-04-2011, 09:29 AM   #5
selvapandian
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Rep: Reputation: Disabled
ssl passpharse forgot

i forgot my ssl passpharse is it possible to reset?
 
  


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
reverse proxy? bwall Linux - Newbie 1 11-22-2005 07:42 PM
apache2 - ssl : connection via ssl interrupted ldp Linux - Software 0 10-02-2005 09:07 AM
ssl.conf on a reverse proxy server depdiver Linux - Security 0 01-17-2005 08:47 AM
still trying to reverse proxy wildbob Linux - Networking 6 10-28-2003 09:12 AM
apache reverse proxy wildbob Linux - Networking 8 10-15-2003 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:55 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