Page 1 of 1

nginx as a reverse proxy to access Apache with mod harbour

PostPosted: Mon Aug 07, 2023 9:58 pm
by Otto
I have installed nginx.
Hello friends,
I have changed the configuration.
I now use nginx as a reverse proxy to access Apache with mod harbour.
I can now access my programs through the Nginx server.
Best regards,
Otto
Code: Select all  Expand view

server {
    listen 80;
    server_name localdomain.com;

    location / {
        proxy_pass http://apache_public_ip_or_domain;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}