nginx using custom port -
i have installed lemp on ubuntu. using port 4738 nginx listener. works fine. can access page 123.123.123.123:4738.
i want rid of port in url. how it? have read many answers on , tried didn't work me. following example:
port_in_redirect off; location / { proxy_pass http://123.123.123.123:4738; }
and
proxy_redirect http://123.123.123.123 http://123.123.123.123:4738; port_in_redirect off;
if you're not using default port protocol, have have port in url. have listen on port 80 if expect not have port in http url.
configure server listen on port 80.
Comments
Post a Comment