multiple https proxy_pass to diffrent apache server
Gena Makhomed
gmm at csdoc.com
Sat Jan 14 16:48:23 UTC 2012
On 14.01.2012 17:17, Jelle de Jong wrote:
> The relevant part of the config: http://paste.debian.net/hidden/9d3d8f16/
> I want to proxy pass port 443 based on the server_name to different
> Apache servers, anybody knows how should I do this?
http://nginx.org/en/docs/http/configuring_https_servers.html
> server {
> listen 443;
> server_name calendar.powercraft.nl;
> ssl on;
> ssl_certificate /etc/ssl/certs/certificate.pem;
> ssl_certificate_key /etc/ssl/certs/privatekey.pem;
> keepalive_timeout 70;
> location / {
> proxy_redirect off;
> proxy_pass https://192.168.24.66/;
> }
> }
>
> server {
> listen 443;
> server_name webmail.tuxblogger.nl;
> ssl on;
> ssl_certificate /etc/ssl/certs/certificate.pem;
> ssl_certificate_key /etc/ssl/certs/privatekey.pem;
> location / {
> proxy_redirect off;
> proxy_pass https://192.168.24.67/;
> }
> }
>
> I want to add several more server_names if possible.
yes, it is possible.
make separate server{ ... } for each https site.
probably you need separate IP for each site,
or use only SNI-capable clients (browsers)
--
Best regards,
Gena
More information about the nginx
mailing list