Hi Folks,
This is a newbie here. I am struggling to a combination of static and dynamic contents for a Login page. In this scenario I have html, js and css files to serve loading the page. At the same time I have a lua script to handle submit action. In nginx config file I have a location section as follows:
location / {
rewrite ^/$ /login permanent;
default_type text/html;
root /opt/sso;
content_by_lua_file /opt/sso/server.lua;
}
My problem is I could not manage to have both mechanisms at the same time! Is it possible to separate static and dynamic sections by HTTP methods? (static for GET and dynamic for POST method).
Appreciate all comments.
Afshin