HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Apache Proxypass + SSL Port (http://www.howtoforge.com/forums/showthread.php?t=35819)

gabriellai 2nd June 2009 08:52

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.

tukangnggame 2nd June 2009 12:23

please tell me about your proxy reverse/proxypass configuration

gabriellai 2nd June 2009 12:41

Quote:

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 06: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 06: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 11:22

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>


gabriellai 3rd June 2009 11: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 11:33

of course.

gabriellai 3rd June 2009 11:36

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


All times are GMT +2. The time now is 15:37.

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