How to remove /web/guest/ from URL on Liferay 7.1 ?How to remove /web/guest/ from URL on Liferay 7.1 ?https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1174142882024-03-28T15:09:08Z2024-03-28T15:09:08ZRE: How to remove /web/guest/ from URL on Liferay 7.1 ?Olaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1174200032019-10-09T19:57:23Z2019-10-09T19:57:23Z<div class="quote-title">Teddy Kossoko:</div><blockquote><br />I think, we use nginx as a reverse proxy. I'm going to send your answer to network developer, maybe he could understand well what you are explaining.<br /></blockquote>Here's an extended explanation:<br />When your reverse proxy sees the hostname "liferay-val.biomass-maap.com", that's fine. However, it's often configured to forward through http to "localhost" or "internalhost42.dmz.example.com". In that case, all that liferay sees is "internalhost42.dmz.example.com", naturally not the same name that you've configured as virtual host.<br />If you forward through ajp instead of http, liferay will see the original hostname. The apache directive "ProxyPreserveHost" will forward the original host as well.Olaf Kock2019-10-09T19:57:23ZRE: How to remove /web/guest/ from URL on Liferay 7.1 ?Teddy Kossokohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1174183972019-10-09T16:59:04Z2019-10-09T16:59:04Z<blockquote> Is that in Control Panel / Configuration / Instance Settings / Instance Configuration / General?<br /></blockquote>Yes, I tried to set this virtual host and tried also control panel/virtual instances/instances/ virtual Host... The result is the same.<br />I think, we use nginx as a reverse proxy. I'm going to send your answer to network developer, maybe he could understand well what you are explaining.<br />Thanks againTeddy Kossoko2019-10-09T16:59:04ZRE: How to remove /web/guest/ from URL on Liferay 7.1 ?Olaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1174169942019-10-09T16:51:30Z2019-10-09T16:51:30Z<html><head></head><body><div class="quote-title">Teddy Kossoko:</div><blockquote><br></blockquote><blockquote>When we change the virtual host<br>The new URL is <br><pre><code>[url=https://liferay-val.biomass-maap.com/welcome]https://liferay-val.biomass-maap.com/welcome[/url]</code></pre><br>But the welcome page is not found.<br></blockquote>Is that in Control Panel / Configuration / Instance Settings / Instance Configuration / General?<br>Also, as you use https: Are you terminating https on a reverse proxy, e.g. Apache? If you forward from an Apache server through http, you might lose the host information. Look up the directive "ProxyPreserveHost" if this is your configuration or switch to mod_jk or mod_proxy_ajp - e.g. AJP as the protocol between your Apache and Tomcat.</body></html>Olaf Kock2019-10-09T16:51:30ZRE: How to remove /web/guest/ from URL on Liferay 7.1 ?Teddy Kossokohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1174177362019-10-09T16:32:14Z2019-10-09T16:32:14Z<html><head></head><body>Hi Olaf, thanks for your answer. When we set the the virtual host in configuration > virtual host from<br><pre><code>127.0.0.1
</code></pre>to <br><pre><code>liferay-val.biomass-maap.com</code></pre><br>Liferay removes in the url /web/guest but all of our pages still needed /web/guest in the past.<br>For example, the welcome page is <br><pre><code>[url=https://liferay-val.biomass-maap.com/web/guest/welcome]https://liferay-val.biomass-maap.com/web/guest/welcome[/url]</code></pre><br>When we change the virtual host<br>The new URL is <br><pre><code>[url=https://liferay-val.biomass-maap.com/welcome]https://liferay-val.biomass-maap.com/welcome[/url]</code></pre><br>But the welcome page is not found.</body></html>Teddy Kossoko2019-10-09T16:32:14ZRE: How to remove /web/guest/ from URL on Liferay 7.1 ?Olaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1174159842019-10-09T15:55:12Z2019-10-09T15:55:12Z<div class="quote-title">Teddy Kossoko:</div><blockquote><br />How could we do with the simplest way possible to remove /web/guest/ ? <br /></blockquote>To remove /web/sitename, you typically set a virtual host name for the site in question. That will make it possible to omit the sitename (and indicator for public or private pages like /web and /group) from the URLOlaf Kock2019-10-09T15:55:12ZHow to remove /web/guest/ from URL on Liferay 7.1 ?Teddy Kossokohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1174142872019-10-09T13:10:01Z2019-10-09T13:10:01Z<html><head></head><body>Hi all.<br>We use Liferay in production and are trying to remove the /web/guest in our URL.<br>We found many solutions over the internet but none fo