LinuxQuestions.org
Review your favorite Linux distribution.
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-16-2013, 02:25 AM   #1
niyas_gk
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Rep: Reputation: Disabled
Problem configuring https apache reverse proxy


Hi All

I need your valuable help on this. Im trying to setup reverse proxy using apache in rhel 5.5. I just started with Apache, and not much idea about going with advance level config, except that i have tried to set up this reverse proxy based on an online guide i found in internet. The purpose of this test to validate, whether the incoming url request from outside is successfully diverting to given application url.

So far, im getting expected result ( thats wht im thinking ) for http requests from outside, as its successfully diverting to the url mentioned in httpd virtual host config, which is as below

-->

ProxyRequests Off

NameVirtualHost *:80
NameVirtualHost *:443

<VirtualHost *:80>
ServerName ws01.mydom.com
ServerAlias ws01
ErrorLog /var/log/httpd/ws01_error.log
TransferLog /var/log/httpd/ws01_access.log

ProxyPass / http://test.mydom.com:8080/
ProxyPassReverse / http://test.mydom.com:8080/

</VirtualHost>

------------------->

what im trying to do next is , is below

1) http url divert to https, and from there to actual app url
2) direct https will divert to app url

So far i have modified the httpd.conf file as follows

-------------------------->

ProxyRequests Off

NameVirtualHost *:80
NameVirtualHost *:443

#Redirect HTTP Request to HTTPS
<VirtualHost *:80>
ServerName ws01.mydom.com
ServerAlias ws01
Redirect / https://ws01.mydom.com/
</VirtualHost>

<VirtualHost *:443>
ServerName ws01.mydom.com
ServerAlias ws01
ErrorLog /var/log/httpd/ws01_error.log
TransferLog /var/log/httpd/ws01_access.log

ProxyPass / http://test.mydom.com:8080/
ProxyPassReverse / http://test.mydom.com:8080/

SSLEngine On
SSLProxyEngine On
SSLCertificateFile /etc/pki/tls/certs/ws01.mydom.com
SSLCertificateKeyFile /etc/pki/tls/private/ws01.mydom.com
</VirtualHost>

------------------------------------------>

when i access the url as ,

1) http://ws01.mydom.com/ -> its redirecting to https://ws01.mydom.com/, and stucks, all i can see is white blank page in browser. The log updating is , access_log and not ws01_access.log. The contents of access_log is ->

""GET / HTTP/1.1" 302 291 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)""

2) https://ws01.mydom.com/ -> its showing default fedora apache page, rather than redirecting to , http://test.mydom.com:8080/. And only the below log getting updated on this time

a) ssl_request_log -> "TLSv1 AES128-SHA "GET /icons/poweredby.png HTTP/1.1" 299"

b) ssl_error_log -> "Directory index forbidden by Options directive: /var/www/html/" ,
"Symbolic link not allowed or link target not accessible: /var/www/icons/poweredby.png, referer: https://192.168.1.172/"

c) ssl_access_log --> ""GET / HTTP/1.1" 403 3918" ,
""GET /icons/poweredby.png HTTP/1.1" 403 299"

I have no idea how to proceed from here, any help would be much appreciated.

What i expect is, the url need to be diverted to http://test.mydom.com:8080/, when accessing from outside, either by http or by https.
 
Old 10-17-2013, 04:03 AM   #2
niyas_gk
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
HI Guys.. Any help ??

HI Guys.. Any help on this ?
 
  


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
BigBlueButton, from http to https reverse proxy Steviepower Linux - Security 3 12-09-2010 07:58 AM
Reverse Proxy with Apache over https citystriker Linux - Networking 5 07-10-2010 07:09 PM
Squid reverse proxy problem (HTTPS to HTTP) RussP Linux - Networking 1 10-02-2008 01:20 PM
HTTPS reverse proxy/VPN??? jantman Linux - Server 1 03-08-2008 11:57 PM
LXer: Linux configure pound reverse proxy for Apache http / https web server LXer Syndicated Linux News 0 12-14-2007 07:20 PM

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

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