Last active
January 2, 2016 15:58
-
-
Save leite/8326589 to your computer and use it in GitHub Desktop.
basic configuration of nginx.conf
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
user nginx www-data; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 768; | |
} | |
http { | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
keepalive_timeout 65; | |
types_hash_max_size 2048; | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
gzip on; | |
gzip_disable "msie6"; | |
include /etc/nginx/sites-enabled/*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
inside /etc/nginx/sites-enabled save a file with the config below ... be creative, any name
Open /etc/hosts and add "127.0.0.1 adem.ar"
important, you must have at least a folder with index.html in /home/ademar/ademar/ademar - make sure that you have user nginx and group www-data in your distro, that folder should belongs to group www-data with an 755 mask