# This server configuration is for running multiple instances of KeystoneJS.
# Configuration script comes from tutorial on ksloan.net:
server {
listen 80 default_server;
listen [::]:80 default_server;
#root /var/www/html;
root /home/trout/connextcmsdemo/myCMS/public;
location / {
try_files $uri @backend;
}
location @backend {
access_log off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_hide_header X-Frame-Options;
}
}
server {
listen 80;
#location / {
#}
#root /var/www/html;
root /home/trout/skagitholiday/myCMS/public;
location / {
try_files $uri @backend;
}
location @backend {
access_log off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_hide_header X-Frame-Options;
}
}