"index" not working properly?
Igor Sysoev
is at rambler-co.ru
Tue Apr 22 10:06:13 MSD 2008
On Mon, Apr 21, 2008 at 10:57:45PM -0700, mike wrote:
> Why is this not finding index.html?
>
> server {
> listen 80;
> server_name domain.com;
> index index.htm index.php index.html;
> root /home/mike/web/domain.com/;
>
> if (!-e $request_filename) {
> rewrite ^(.+)$ /index.htm last;
> }
>
> }
>
> The file exists just fine, and I can access it directly by going to
> domain.com/admin/index.html
>
> However, it matches the if (!-e) check somehow... when I comment it
> out, it works.
>
> Anyone have any ideas?
server {
listen 80;
server_name domain.com;
index index.htm index.php index.html;
root /home/mike/web/domain.com/;
locaiton / {
error_page 404 = /index.htm;
}
locaiton = /index.htm {
}
}
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list