Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: how to hide the port number 8443
hi
i use 6.2, server be triggered by eclpise, and i try to add ssl, follow the steps with
https://liferay.dev/blogs/-/blogs/ssl-configuration-in-liferay-https-
it works.
now it will redirect even user try use http, it will auto-redirect to https
but, it will add port number behind, for example
user type "http://mysite"
it will redirect to "https://mysite:8443"
i try add in portal-ext.properties
web.server.https.port=8443
does not work.
Can you check your server.xml for a linke like this:
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>
and change the port to 443?
Does that help?
thank you. i will try when the server not buzy.
and i will reply the result.
again, thank you
Extending on Christoph's answer: The only way to eliminate the port number is to use the default port, which is 443 - all other ports will need to be specified explicitly.
As is mentioned in Arun's comment to the article you link, I'm recommending to use a reverse proxy in a non-development environment. On operating systems like Linux, you'll have problems binding ports lower than 1024 if you're not root - and by no means do you want to run a web-facing server as root. A reverse proxy neatly masks that requirement.
Powered by Liferay™