punbb

Ar3s nginx-forum на nginx.us
Пт Мар 2 00:04:06 UTC 2012


Извините, затупил

<IfModule mod_rewrite.c>
	# MultiViews interfers with proper rewriting
	Options -MultiViews

	RewriteEngine On

	# Uncomment and properly set the RewriteBase if the rewrite rules are
not working properly
	#RewriteBase /

	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule . rewrite.php [L]
</IfModule>

<IfModule mod_setenvif.c>
 	<IfModule mod_headers.c>
    	BrowserMatch MSIE ie
    	Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
  	</IfModule>
</IfModule>

<IfModule mod_headers.c>
	# Because X-UA-Compatible isn't sent to non-IE (to save header bytes),
	# We need to inform proxies that content changes based on UA
  	Header append Vary User-Agent
	# Cache control is set only if mod_headers is enabled, so that's
unncessary to declare
</IfModule>

AddDefaultCharset utf-8
AddCharset utf-8 .html .css .js .xml .json .rss

<IfModule mod_autoindex.c>
    Options -Indexes
</IfModule>

Большинство комментов вырезал за
ненадобностью.

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,223140,223220#msg-223220



Подробная информация о списке рассылки nginx-ru