HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Server Operation (
-   -   Apache Proxypass + SSL Port (

gabriellai 2nd June 2009 09:52

Apache Proxypass + SSL Port

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.

tukangnggame 2nd June 2009 13:23

please tell me about your proxy reverse/proxypass configuration

gabriellai 2nd June 2009 13:41


Originally Posted by tukangnggame (Post 191591)
please tell me about your proxy reverse/proxypass configuration

I manage to get it works. will share the config later on :)

tukangnggame 3rd June 2009 07:12

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.

gabriellai 3rd June 2009 07:16

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?

tukangnggame 3rd June 2009 12:22

maybe you can use virtual host

<VirtualHost *>
        ServerName ""
        ServerAlias ""
        DocumentRoot /var/www/mydomain
        <Directory /var/www/mydomain>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all


gabriellai 3rd June 2009 12:26

ya i got it... can we use VirtualHost for multiple HTTPS VirtualHost with a single IP Address? I'm using VirtualHost for this as well, just do not have any idea whether can I host multiple VirtualHost in HTTPS with a single IP address?

tukangnggame 3rd June 2009 12:33

of course.

gabriellai 3rd June 2009 12:36

Wow cool.... I'll test it out :)

All times are GMT +2. The time now is 08:30.

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