user www-data www-data; worker_processes 2; 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 conf/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] $status ' '"$request" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "http_x_forwarded_for"'; access_log logs/access.log main; sendfile on; tcp_nopush on; tcp_nodelay on; server { listen 80; server_name localhost; access_log logs/host.access.log main; location / { root html; index index.html index.htm; } } server { listen 80; server_name home home.local home.kovyrin.net; access_log logs/host.access.log main; location / { root /usr/www_root.home/; index index.html index.htm; } } server { listen 80; server_name test.local; access_log logs/host.access.log main; location / { root /usr/www_root.home/test; index index.html index.htm; } } }