Website port no

Hi guys,
So i have erp installed and is runing fine.
ut i also have apache installed which listen to port 80 and 443…

i know i can assign a different port to nginx for erpnext but i dont want to use the port no. in browser… for ex: i set nginx to 8080 but then i have to type… erp.mydomain.com:8080 … i dont want to write port no…

is it possible ? or does only port 80 has this privilege ?

Read about apache virtualhost proxy.

@johnwick tried but cant understand anything… sad

As example in apache config you need to add VirtualHost:

<VirtualHost *:80>
    ServerName erp.mydomain.com
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
</VirtualHost>

ok cool… so its not possible to have nginx and apache and both listen to different port and not needed to enter port no. in browsers… port no has to be entered right ?
only with virtualhost proxy…

i think browsers are made to listen only port 80 fot http and only explicitly mentioned ports it can bwoser listen to…
correct ?

doesnt work buddy…
i added same : erp.mydomain.com as a virutal host in apache then added its letsencrypt ssl … then went to this sites config file in sites available folder and editts its config file…
<VirtualHost 161.11.222.336:80> ip just as an example
ServerName erp.mydomain.com
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

<VirtualHost 161.11.222.336:80:443>
ServerName erp.mydomain.com
ProxyPass / https://localhost:8443/ add https as its ssl section…
ProxyPassReverse / https://localhost:8443/

when i go to mydomain.com:8443 erpnext works…

pls help

Well it was very simple , just went into my virtualmin panel then server configurations then edit proxy website… simple …

thanks anyways