Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (35 sloc) 841 Bytes
events {
worker_connections 4096; ## Default: 1024
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
include /etc/nginx/conf.d/*.conf;
# if www, redirect to non-www
server {
listen 80;
server_name www.msdevshow.com;
return 301 https://msdevshow.com$request_uri;
}
#prod
server {
listen 80;
server_name msdevshow.com;
#force SSL
if ($http_x_arr_ssl = "") {
return 301 https://$host$request_uri;
}
try_files $uri $uri/index.html $uri/index.xml =404;
error_page 404 /404.html;
root /usr/share/nginx/html;
}
#dev/test
server {
listen 80 default_server;
#server_name _;
try_files $uri $uri/index.html $uri/index.xml =404;
error_page 404 /404.html;
root /usr/share/nginx/html;
}
}