'How to run sites in subdirectories with NGINX
My NGINX app looks like so:
server {
listen 80;
server_name server_domain_or_IP;
location / {
include proxy_params;
proxy_pass http://unix:/home/ubuntu/home-app.sock;
}
location /memory-match {
include proxy_params;
proxy_pass http://unix:/home/ubuntu/mm-app.sock;
}
}
the site at directory /
works but the site at directory /memory-match
gives an error that reads "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."
I know that both sites work as switching the directories will still result in the subdirectory not working.
Any help or insight is much appreciated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|