Error with nginx reverse proxy setup

Jun Chen acgtek at yahoo.com
Sun Mar 19 03:03:57 UTC 2017


Hi All,
I am setting my first reverse proxy by following online posts. The problem is that when I type the http://my_ip_address/my_rev and it returns an 404 error:

Not Found
The requested URL was not found on the server.If you entered the URL manually please check your spelling and try again.
Here is what I did:
1. installed nginx 1.10.0 on ubuntu 16.042. created file my_nx.conf under /etc/sites-available with following:
    server {
            listen 80;
            server_name my_ip_address;   

            location /my_rev {
                    proxy_pass http://192.168.1.65:5000;
                    include /etc/nginx/proxy_params;
            }
    }3. Under /etc/sites-enabled, a symlink my_nx.conf was generated pointing to /etc/sites-available/my_nx.conf4. restart nginx 
5. On browser, type http://my_ip_address/my_rev and, the error
The configuration seems very straightforward. Where have I missed? Many thanks.
-Jun C





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170319/1c3a2abb/attachment.html>


More information about the nginx mailing list