#changes in /etc/nginx/sites-available/default
server {
server_name example.com;
root /path/to/root;
location / {
# blah blah
}
location /demo {
alias /path/to/root/production/folder/here;
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter