Created
August 18, 2013 19:04
-
-
Save luzfcb/6263363 to your computer and use it in GitHub Desktop.
configuração nginx
/etc/nginx/sites-available/default
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
server { | |
listen 80; | |
listen [::]:80 default_server ipv6only=on; | |
root /home/projeto_sgt/sgt/docs/build/singlehtml/; | |
index index.html index.htm; | |
server_name localhost; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} | |
location /doc/ { | |
alias /usr/share/doc/; | |
autoindex on; | |
allow 127.0.0.1; | |
allow ::1; | |
deny all; | |
} | |
} | |
server { | |
server_name gitlab.meudominio.info www.gitlab.meudominio.info; | |
access_log /opt/gitlab-5.4.0-0/apps/gitlab/htdocs/log/gitlab-domain-acess.log; | |
error_log /opt/gitlab-5.4.0-0/apps/gitlab/htdocs/log/gitlab-domain-error.log; | |
location / { | |
root /opt/gitlab-5.4.0-0/apps/gitlab/htdocs; | |
proxy_set_header Host $host; | |
proxy_pass http://127.0.0.1:8090; | |
include /etc/nginx/proxy_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment