Мои настройки Nginx для этого форума (discourse-forum.ru)

server {
	listen 80;
	server_name discourse-forum.ru;
	location = /robots.txt {
		root /var/www/res/discourse;
		access_log off;
		expires max;
		break;
	}
	location / {
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header Host $http_host;
		proxy_redirect off;
		proxy_pass http://discourse_forum_ru;
	}
}
server {
	server_name www.discourse-forum.ru;
	rewrite ^ http://discourse-forum.ru$request_uri? permanent;
}
1 симпатия