I get that
But i dont really know why there is two files stpl and tpl
get that the way it should work it that it has listen port and then proxy it to the other port but
when i tried it the nginx would not restart or start again until i set the proxy setting back to default
also i have never heard of the saying :
give a man a fish and you feed him for a day; teach a man to fish and he will setup a proxy server for hosting
May 16 17:11:52 srv1.main.com systemd[1]: Starting nginx - high performance web server…
May 16 17:11:54 srv1.main.com nginx[515]: nginx: [warn] conflicting server name “mail.main.com” on 10.10.111.25:80, ignored
May 16 17:11:54 srv1.main.com nginx[515]: nginx: [warn] conflicting server name “mail.tamper.com” on 10.10.111.25:80, ignored
May 16 17:11:54 srv1.main.com nginx[515]: nginx: [warn] conflicting server name “mail.main.com” on 10.10.111.25:443, ignored
May 16 17:11:54 srv1.main.com nginx[515]: nginx: [warn] conflicting server name “mail.tamper.com” on 10.10.111.25:443, ignored
I tried this setting
server {
listen %ip%:%proxy_ssl_port% ssl http2; ### Listen to the standart port is this case 443
server_name %domain_idn% %alias_idn%;
ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%;
ssl_stapling on;
ssl_stapling_verify on;
error_log /var/log/%web_system%/domains/%domain%.error.log error;
include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
location / {
proxy_pass https://%ip%:8083; ### This should redirect it to port 8083 ???
location ~* ^.+.(%proxy_extentions%)$ {
root %sdocroot%;
access_log /var/log/%web_system%/domains/%domain%.log combined;
access_log /var/log/%web_system%/domains/%domain%.bytes bytes;
expires max;
try_files $uri @fallback;
}
}
Got it sorted
When you make changes you need to change the template to default and save og then back and save so that the site can generate the new ngin.conf