user www data; worker_processes auto; pid / run / nginx.pid;
events {
worker_connections 768;
}
http {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
include /etc/nginx/mime.types;
gzip on;
gzip_disable "msie6";
application/javascript text/xml application/xml applicatio
n/xml+rss text/javascript;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
include /etc/nginx/sites-enabled/*;
Deploying a meteor with a nginx web server: This is my nginx.config file, I get a follwing error. The map directive is not allowed here in / etc / nginx / sites -enabled / app: 2 nginx: configuration file /etc/nginx/nginx.conf test failed "while executing" sudo nginx -t "
source
share