Welcome! Log In Create A New Profile

Advanced

location & if regex catch ajax requests

Posted by k3j4 
location & if regex catch ajax requests
July 21, 2015 04:40AM
Hello.

Im all new to nginx, i really like it so far, but i ran into bit of a problem.

I have to projects on the server and they both are taking ajax requests, all ajax requests are going through index.php (my router)

I got it all working so far, untill i do ajax requests via GET, as the params do not match my rules i guess.



here is my config:
https://gist.github.com/keja/c6219f5a9378007f4640



i have tried to add;
(?\?:.+)
(.+)
(?.+)
(.+?)
(.+)?
?(.+)
and other combinations after "...(.+)/ajax-(.+)\.php"


any help is appreciated :)

/Kenneth
Re: location & if regex catch ajax requests
July 28, 2015 06:58AM
i fixed..

i ended up with

/index.php?request=$uri&$args;
instead of
/index.php?request=$request_uri;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
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