I have a Web Application with multiple pages (Login, Signup, forget password etc ) created using TypeScript . I want to create config file such a way that , when users click on Submit button on Login page it should take them to home page or if they click on Forget password it should take them to the forget password page. How can i achieve this scenario in nginx.
I researched but couldn't find relevant documentation or Blogs on the same.
Attaching my Sample nginx.conf for your reference . This Conf file only have location configurations for all those pages .
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name _;
root html/webconsole/WebConsole/src;
location / {
index index.html index.htm;
}
location /register {
alias html/webconsole/WebConsole/src/app/register/;
index register.component.html register.component.htm;
}
location /register-confirm {
alias html/webconsole/WebConsole/src/app/register-confirm/;
index register-confirm.component.html register-confirm.component.htm;
}
location /login {
alias html/webconsole/WebConsole/src/app/login/;
index login.component.html login.component.htm;
}
location /forget-pwd {
alias html/webconsole/WebConsole/src/app/forget-pwd/;
index forget-pwd.component.html forget-pwd.component.htm;
}
location /resend {
alias html/webconsole/WebConsole/src/app/resend/;
index resend.component.html resend.component.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
Let me know how can i achieve my requirement .
Thanks in Advance