Skip to content

Instantly share code, notes, and snippets.

@JuniorLima
Created September 6, 2013 12:04
Show Gist options
  • Save JuniorLima/6462876 to your computer and use it in GitHub Desktop.
Save JuniorLima/6462876 to your computer and use it in GitHub Desktop.
Instalação CentOS - Tutorial Marcelo Gomes
#user nobody;
worker_processes 1;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name 192.241.243.249;
location / {
root /srv/meuprojeto;
index index.html index.htm;
access_log off;
proxy_pass http://192.241.243.249:8000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment