Welcome! Log In Create A New Profile

Advanced

Re: Block access to every file in the site but index.htm

February 17, 2011 10:02PM
On Fri, Feb 18, 2011 at 9:00 AM, atipico <nginx-forum@nginx.us> wrote:
> I have a site with just one file: index.htm witch have some ajax linked
> to php files. I'd like to make thouse php files only accessable via ajax
> (post and get) coming from this index file and block access to all files
> but the index.htm. Is it possible in Nginx? Thanks.
>

location = /index.htm {
root ...
...
}

location / { return 404; }

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Block access to every file in the site but index.htm

atipico February 17, 2011 09:00PM

Re: Block access to every file in the site but index.htm

edogawaconan February 17, 2011 10:02PM

Re: Block access to every file in the site but index.htm

Tony Liu February 18, 2011 03:04AM

Re: Block access to every file in the site but index.htm

atipico February 18, 2011 05:09AM

Re: Block access to every file in the site but index.htm

atipico February 18, 2011 05:15AM

Re: Block access to every file in the site but index.htm

Tony Liu February 18, 2011 05:36AM

Re: Block access to every file in the site but index.htm

atipico February 18, 2011 06:39AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready