Liferay sends email notification with port number next to website address
written-by
Alfonso Crisci
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
Issue
- When receiving Liferay email notifications (for example: New account Created, Password reset link, etc ...), users may notice the app server's port number appended to the website domain, for example: www.myliferayportal.com:8080
Environment
- Portal 6.2
- Liferay DXP 7.0+
Resolution
- Leveraging these properties in the portal-ext.properties file shall resolve the the
:PORT behavior:
##
## Web Server
##
#
# Set the HTTP and HTTPs ports when running the portal in a J2EE server that
# is sitting behind another web server like Apache. Set the values to -1 if
# the portal is not running behind another web server like Apache.
#
# Env: LIFERAY_WEB_PERIOD_SERVER_PERIOD_HTTPS_PERIOD_PORT
# Env: LIFERAY_WEB_PERIOD_SERVER_PERIOD_HTTP_PERIOD_PORT
#
web.server.http.port=-1
web.server.https.port=-1
For example, to remove:8080 from www.myliferayportal.com:8080 or :443 from www.myliferayportal.com:443 the below shall help:
web.server.http.port=80
web.server.https.port=443
did-this-article-resolve-your-issue