Skip to content

Instantly share code, notes, and snippets.

@tangrufus
Last active July 19, 2017 12:35
Show Gist options
  • Save tangrufus/9cf732dd8a71cc49def070dda0daf528 to your computer and use it in GitHub Desktop.
Save tangrufus/9cf732dd8a71cc49def070dda0daf528 to your computer and use it in GitHub Desktop.
static nginx site
# Add this one along with your other nginx config files
# Do not change any existing site config file
# This example use port 8080
# Maybe you have to change to another port
# See also: https://www.nginx.com/resources/admin-guide/serving-static-content/
server {
listen 8080;
root /var/www/html/images_c/
location / {
}
}
@tangrufus
Copy link
Author

Where to put this file?
See: https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04
In that tutorial this example.conf is called Server Block File

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment