Sorry for the grammar error.
If I do curl -i http://domain.com/assets/js/msgFBmodal.js
it returns the code from the msgFBmodal.js page. Yet if I hit the page via browser I still receive the gateway error.
The nginx.conf file is:
#user nginx;
worker_processes 1;
#error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
#pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
"nginx.conf" 40L, 847C