Static index file in Nginx+Apache

ilin nginx-forum at
Thu Jan 19 08:21:08 UTC 2012

location / {
	index index.htm;
	proxy_set_header   X-Real-IP $remote_addr;
	proxy_set_header   Host $http_host;
	proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;

location ~* \.(jpg|jpeg|gif|png|ico|css|bmp|js|swf|html|htm)$ {
	root /home/site/public_html/;

I need process the request "GET /" via Nginx (as static file).
Added directive "index" has no effect, the request passed to backend.
What's wrong?


Posted at Nginx Forum:,221434,221434#msg-221434

More information about the nginx mailing list