FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour nginx as a reverse proxy to access Apache with mod harbour
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
nginx as a reverse proxy to access Apache with mod harbour
Posted: Mon Aug 07, 2023 09:58 PM
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 (fw): Select all Collapse
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;
    }
}

Continue the discussion