Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd June 2009, 08:52
gabriellai gabriellai is offline
Junior Member
 
Join Date: Jun 2009
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default Apache Proxypass + SSL Port

Hi,

I'm trying to configure a connection from apache server to backend server. scenario is as below:

User request for HTTPS --> Apache HTTPS --> Proxypass to --> backend server at http://localhost:8000 --> then return back to user

I tried proxypass and proxypassreverse on HTTPS connection, it don't work at all, but it works on Port 80.

Please advise.
Reply With Quote
Sponsored Links
  #2  
Old 2nd June 2009, 12:23
tukangnggame tukangnggame is offline
Junior Member
 
Join Date: Jun 2009
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

please tell me about your proxy reverse/proxypass configuration
__________________
tukang nggame
Reply With Quote
  #3  
Old 2nd June 2009, 12:41
gabriellai gabriellai is offline
Junior Member
 
Join Date: Jun 2009
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by tukangnggame View Post
please tell me about your proxy reverse/proxypass configuration
I manage to get it works. will share the config later on
Reply With Quote
  #4  
Old 3rd June 2009, 06:12
tukangnggame tukangnggame is offline
Junior Member
 
Join Date: Jun 2009
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

I will check your configuration only. OK.
My be you can try to enable https server both (main server and backend server). Put proxyreverse configuration to your https server configuration.
__________________
tukang nggame
Reply With Quote
  #5  
Old 3rd June 2009, 06:16
gabriellai gabriellai is offline
Junior Member
 
Join Date: Jun 2009
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

this is what I have in my ssl.conf

Redirect / https://real-domain/console
ProxyPreserveHost on
ProxyPass /console https://backend:<port>/console
ProxyPassReverse /console https://backend:<port>/console

I've forgotten that SSL Configurations should be put inside ssl.conf and not httpd.conf.

That was where the error came from, once putting into ssl.conf, everything solves.

Now i'm cracking my head on how to make HTTPS listen to one IP only, but with several domain names, any idea?

Last edited by gabriellai; 3rd June 2009 at 06:20.
Reply With Quote
  #6  
Old 3rd June 2009, 11:22
tukangnggame tukangnggame is offline
Junior Member
 
Join Date: Jun 2009
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

maybe you can use virtual host
example
Code:
<VirtualHost *>
        ServerAdmin tukangnggame@mydomain.com
        ServerName "www.mydomain.com"
        ServerAlias "mydomain.com"
        DocumentRoot /var/www/mydomain
        <Directory /var/www/mydomain>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
	....bla..bla..bla...

</VirtualHost>
__________________
tukang nggame
Reply With Quote
The Following User Says Thank You to tukangnggame For This Useful Post:
gabriellai (4th June 2009)
Reply

Bookmarks

Tags
apache, https, proxypass, ssl

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with suexec gobokster Installation/Configuration 7 7th May 2009 13:33
SSL "connection interrupted" apache not listening on 443 yuro Installation/Configuration 10 28th October 2008 14:42
Mail Question: installed smf forum on centos perfect server setup with ispconfig happz Installation/Configuration 7 22nd August 2008 13:15
Getting e-mail working hansoffate Installation/Configuration 29 13th August 2008 16:33
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 22:40


All times are GMT +2. The time now is 16:34.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.