Set up a Virualhost in your apache pointing to the port you want.
Example:
<VirtualHost *:8080>
ServerName servico.mydomain.com
ProxyPreserveHost On
ProxyPass / http://servico.mydomain.com:8080/
ProxyPassReverse / http://servico.mydomain.com:8080/
</VirtualHost>
You can do the same if you want to use other ports, that is, multiple Virtualhost.
<VirtualHost *:9090>
ServerName outroservico.mydomain.com
ProxyPreserveHost On
ProxyPass / http://outroservico.mydomain.com:9090/
ProxyPassReverse / http://outroservico.mydomain.com:9090/
</VirtualHost>
Creating a dynamic dns, maybe. Or setting to port 80.
– user28595
You can try port forwarding in your gateway
– Wictor Chaves
@Wictorchaves how would I do that? In my modem admin?
– Wagner Martins Bodyboard
I can give you the idea, but it tells you where to go is complicated, because each modem/ router is one way, but it works like this, everything that arrives at port 80 will be directed to port 8080
– Wictor Chaves
Search the model of your router "how to redirect ports with the router xpto02", the procedure is simple, in general there are two fields you put the source port and target 80 -> 8080.
– Wictor Chaves
This is a fixed IP or is the IP that your provider has allocated to you momentarily?
– MagicHat
@Magichat hired IP Fixed
– Wagner Martins Bodyboard
How is the file
ports.conf
?– MagicHat
Listen 80 Listen 8080 <Ifmodule ssl_module> Listen 443 </Ifmodule> <Ifmodule mod_gnutls. c> Listen 443 </Ifmodule>
– Wagner Martins Bodyboard