See how nginx processes a request. But I will add a couple of caveats that specifically address your question and are easily observed but may not be well documented.
You mention rewrite and return directives, but these belong to the ngx_http_rewrite_module which have there own evaluation rules and do not behave the same as the core directives. You are ...
you can install Nginx and edit the configuration files (if on ubuntu) that are in /etc/nginx/sites-available/default you can change where it says
listen 80 default_server;
listen [::]:80 default_server;
and edit to what you need, from what you mentioned you could use
listen 2083 default_server;
listen [::]:2083 default_server;
for SSL you can edit ...
Also, there is a small misunderstanding of nginx in your configuration: you should replace $uri/ with $uri/index.php or $uri/index.html or whatever. It stops at try_files $uri/ because it does find that location but the user is forbidden to access it.
This works for me as it was approved as correct answer :)
Thanks Florin Asăvoaie
location ^~ /...
Tomcat does not have support for acting as a reverse proxy.
If the second server is a LAMP server then httpd can act as a reverse proxy. It would be worth considering reorganising things so the LAMP server uses the domain and certificate and then proxies requests to the Tomcat instance as required.
I already talked with the ISP, they even don't know what's "web
If that was the customer support responsible for your contract, that means you do not have a contract with your ISP that is geared towards professional use. Maybe even the entire ISP only serves consumer use cases.
Go get a contract with a company appropriate for your use. ...
First, make sure you enable the CGI module using :
and try add AddHandler above Action
AddHandler test-script .tts
Action test-script "/usr/lib/cgi-bin/tts.cgi"
If you want to run CGI script, just use config like below:
AddHandler cgi-script .cgi .pl .py .rb