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… … 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>
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/

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 : 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> ip just as an example
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

ProxyPass / https://localhost:8443/ add https as its ssl section…
ProxyPassReverse / https://localhost:8443/

when i go to 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