nginx – reverse proxy to apache over ssl/https

How to configure a reverse proxy from nginx to apache2 via https:

in your nginx vhost config:

location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass https://localhost:9002;

Then you need to change the apache2 ssl port to 9002 that nginx can connect to apache2 over the other port:

Kommentar verfassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Nach oben scrollen