You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
otherwise it is not possible return something from node.js on the root (i.e.: http://www.myapp.com/) of the domain, as nginx (if the 'public' folder exists) needs to handle an HTTP 403 instead of an HTTP 404.
The text was updated successfully, but these errors were encountered:
use case 1: if there is no index.html a request for / will be handled to the @backend
use case 2: if there is a index.html a request for / will return the index.html in the public folder.
I still get a 502 Bad Gateway error with this fix. What am I doing wrong? I'm running socket.io and expressjs, FYI.
Thanks for your time, this is starting to drive me insane.
/etc/nginx/sites-available/myapp-httpp
currently is:
should:
otherwise it is not possible return something from node.js on the root (i.e.: http://www.myapp.com/) of the domain, as nginx (if the 'public' folder exists) needs to handle an HTTP 403 instead of an HTTP 404.
The text was updated successfully, but these errors were encountered: