Assuming that you use it as a reverse proxy, I think you can do something similar with NGINX by mixing these guides:
Check the existence of a session (Nginx)
I have two sessions in PHP: $_SESSION["session"]["key"] = md5 ($token . $userAgent . $ip); $_SESSION["session"]["timeout"] = time (); Just want to check that sessions with nginx, tried this code
Nginx: Reject request if header is not present or wrong
If I have the headers: X_HEADER1 & X_HEADER2, I want to reject all requests if either of these headers are not set or do not contain the correct values. What is the best way to do this? Thanks
Nginx: moving site to new domain
I have a site example.com that runs wordpress. Now I want to move this blog to subdomain blog.example.com, but also I want following: example.com --> static page (not wordpress) blog.example.c...
I feel you brother. Don't know much about Java, except to stay away from it. I know some PH though, just enough to realize that it has had it's day. It is time to move on.
I kind of feel bad about PHP. I like it, in a nostalgic sort of way. I'm big on sentimentalism. I have a Remington model 5 typewriter around for sentimental reasons; I like it, the way it looks, the twang of keys as I try to write something with it. But I don't *actually *write anything substantial on it of course. Maybe an adress on an envelope or something, maybe once a year.
That is sort of the way I feel about PHP: it was the bomb at one point. But it is becoming increasingly clear that node.js (and perhaps similar technologies) is the way forward. It makes me a little sad, because there is a lot of legacy tech out there, and a LOT to learn for those who just recently mastered PHP. Its like "Hey, I just got here! Do I really have to start *another * marathon right away?"
But I guess there's no time for that. I have to keep moving, keep moving... And in half a decade or so, when I have finally masted that node beast, when all the node.js things like this here forum software will have integers instead of floats as stable version numbers, something completely new and infinitely better will come along.... it will never end.