Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

location & if regex catch ajax requests

$
0
0
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>