Nginx

In nginx the trailing slash is important in proxy_pass directive. If you have a trailing slash in the proxy_pass directive like this:

location /notes {
    proxy_pass http://notes-site/;
}

Nginx will not append the part of the URI after the /notes to the proxy URL.

For example, a request to http://soheilvaseghi.com/notes/example will be forwarded to http://notes-site/, not http://notes-site/example.

If you want the part of the URI after the /notes to be appended to the proxy URL, you should remove the trailing slash:

location /notes {
    proxy_pass http://notes-site;
}

Now, a request to http://soheilvaseghi.com/notes/example will be forwarded to http://notes-site/example.