NGINX Multitenancy

#excerpt of nginx.conf:

server {
listen 80;
server_name zfsftw.com;
location / {
root /usr/local/www/nginx-dist/zfsftw;
index index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}
}

server {
listen 80;
server_name hwcdi.com;
#access_log logs/host.access.log main;
## redirect http to https ##
rewrite ^ https://$server_name$request_uri? permanent;
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *