Answer the question
In order to leave comments, you need to log in
What is the basic config for Express?
Setup: application on Express, Ubuntu 16.04 on ES2, nginx + own domain (Elastic IP indicated in A record).
I have the simplest config in /etc/nginx/sites-available:
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Answer the question
In order to leave comments, you need to log in
1) How nginx processes requests
2) sites-enabled usually symlink to sites-available, nginx.conf includes files from sites-enabled.
3) proxy_cache_bypass is needed if caching is configured nginx.org/en/docs/http/ngx_http_proxy_module.html#...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question