Skip to content

Instantly share code, notes, and snippets.

@rafarubert
Last active August 29, 2015 14:04
Show Gist options
  • Save rafarubert/782ceb443009930d0b82 to your computer and use it in GitHub Desktop.
Save rafarubert/782ceb443009930d0b82 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name iphoneria.rubert.com.br;
client_max_body_size 500M;
location / {
root /usr/share/nginx/www/iphoneria;
access_log /var/log/nginx/iphoneria.rubert.com.br.domain_access.log;
error_log /var/log/nginx/iphoneria.rubert.com.br.domain_error.log;
index index.html index.php;
}
location ^~ /blog/ {
root /usr/share/nginx/www/iphoneria-blog;
access_log /var/log/nginx/iphoneria.rubert.com.br_blog.domain_access.log;
error_log /var/log/nginx/iphoneria.rubert.com.br_blog.domain_error.log;
index index.html;
}
}
#2014/08/06 13:58:09 [error] 29772#0: *86062 "/usr/share/nginx/www/iphoneria-blog/blog/index.html" is not found (2: No such file or directory), client: 179.186.155.57, server: iphoneria.rubert.com.br, request: "GET /blog/ HTTP/1.1", host: "iphoneria.rubert.com.br"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment