Last active
July 19, 2017 12:35
-
-
Save tangrufus/9cf732dd8a71cc49def070dda0daf528 to your computer and use it in GitHub Desktop.
static nginx site
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 / { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 calledServer Block File