server {
	listen 80;
	server_name site1.ru www.site1.ru;
	root /var/www/site1;
	access_log /var/log/nginx/site1_access.log;
	error_log /var/log/nginx/site1_error.log;

	location / {
		proxy_set_header X-Real-IP  $remote_addr;
		proxy_set_header X-Forwarded-For $remote_addr;
		proxy_set_header Host $host;
		proxy_pass http://webserver_apache2_1:80;
	}

	location ~* ^.+\.(jpg|jpeg|gif|png|css|zip|pdf|txt|js)$ { }
	location = /favicon.ico { access_log off; log_not_found off; }
	location = /robots.txt { access_log off; log_not_found off; }        
	location ~ /\. { deny all; access_log off; log_not_found off; }
}
