Welcome! Log In Create A New Profile

Advanced

Static index file in Nginx+Apache

January 19, 2012 03:21AM
location / {
index index.htm;
proxy_pass http://127.0.0.1:8080;
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?

Thanks.
Subject Author Posted

Static index file in Nginx+Apache

ilin January 19, 2012 03:21AM

Re: Static index file in Nginx+Apache

Edho Arief January 19, 2012 03:34AM

Re: Static index file in Nginx+Apache

ilin January 19, 2012 04:40AM

Re: Static index file in Nginx+Apache

Edho Arief January 19, 2012 05:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 55
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready