<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Links being created incorrectly</title>
  <link rel="self" href="https://liferay.dev/pt/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=81413" />
  <subtitle>Links being created incorrectly</subtitle>
  <id>https://liferay.dev/pt/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=81413</id>
  <updated>2026-05-16T01:49:04Z</updated>
  <dc:date>2026-05-16T01:49:04Z</dc:date>
  <entry>
    <title>Links being created incorrectly</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81431" />
    <author>
      <name>David Eagen</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81431</id>
    <updated>2006-07-28T18:35:20Z</updated>
    <published>2006-07-28T18:35:20Z</published>
    <summary type="html">&lt;blockquote&gt;&amp;lt;br /&amp;gt;hi david,&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     i use mod_jk with apache-tomcat so i am not very familiar with apache-jboss setup. are you using mod_proxy? you may need to use proxypassreverse to rewrite the url so that jboss will get a port 80 when we do a request.getServerPort().&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;joe&amp;lt;br /&amp;gt;&lt;/blockquote&gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Yes, I&amp;amp;#39;m using mod_proxy with the reverse. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;But, I found another fix. Added web.server.http.port=80 and web.server.https.port=443 solved the problem. Now the redirects are working and the links are being created correctly. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Thanks for the help everyone&amp;amp;#33;</summary>
    <dc:creator>David Eagen</dc:creator>
    <dc:date>2006-07-28T18:35:20Z</dc:date>
  </entry>
  <entry>
    <title>Links being created incorrectly</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81429" />
    <author>
      <name>Joseph Shum</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81429</id>
    <updated>2006-07-28T18:30:54Z</updated>
    <published>2006-07-28T18:30:54Z</published>
    <summary type="html">&lt;blockquote&gt;&amp;lt;br /&amp;gt;Thanks, that got me much closer. Now the problem is the port. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;The jboss server is running on port 9000 and my apache server redirects /liferay to it. After updating portal-ext.propertis with web.server.host and web.server.protocol, when I go to &amp;lt;a href=&amp;#34;http://www.mydomain.com/liferay&amp;#34; target=&amp;#34;_blank&amp;#34;&amp;gt;http://www.mydomain.com/liferay&amp;lt;/a&amp;gt; I am redirected to &amp;lt;a href=&amp;#34;https://www.mydomain.com:9000/liferay&amp;#34; target=&amp;#34;_blank&amp;#34;&amp;gt;https://www.mydomain.com:9000/liferay&amp;lt;/a&amp;gt;. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;So now for the redirect at least all I need to do is get rid of the 9000 on the URL. Hopefully once I&amp;amp;#39;m able to log in the links will also be created correctly.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I tried setting web.server.port to 443 but it didn&amp;amp;#39;t change anything.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;-Dave&amp;lt;br /&amp;gt;&lt;/blockquote&gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;hi david,&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     i use mod_jk with apache-tomcat so i am not very familiar with apache-jboss setup. are you using mod_proxy? you may need to use proxypassreverse to rewrite the url so that jboss will get a port 80 when we do a request.getServerPort().&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;joe</summary>
    <dc:creator>Joseph Shum</dc:creator>
    <dc:date>2006-07-28T18:30:54Z</dc:date>
  </entry>
  <entry>
    <title>Links being created incorrectly</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81427" />
    <author>
      <name>David Eagen</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81427</id>
    <updated>2006-07-28T18:10:40Z</updated>
    <published>2006-07-28T18:10:40Z</published>
    <summary type="html">&lt;blockquote&gt;&amp;lt;br /&amp;gt;hi david,&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;in portal.properties&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;    #&amp;lt;br /&amp;gt;    # Set the hostname that will be used when the portlet generates URLs.&amp;lt;br /&amp;gt;    # Leaving this blank will mean the host is derived from the servlet&amp;lt;br /&amp;gt;    # container.&amp;lt;br /&amp;gt;    #&amp;lt;br /&amp;gt;    web.server.host=&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;    #&amp;lt;br /&amp;gt;    # Set the preferred protocol.&amp;lt;br /&amp;gt;    #&amp;lt;br /&amp;gt;    #web.server.protocol=https&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;hope this help.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;joe&amp;lt;br /&amp;gt;&lt;/blockquote&gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Thanks, that got me much closer. Now the problem is the port. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;The jboss server is running on port 9000 and my apache server redirects /liferay to it. After updating portal-ext.propertis with web.server.host and web.server.protocol, when I go to &amp;lt;a href=&amp;#34;http://www.mydomain.com/liferay&amp;#34; target=&amp;#34;_blank&amp;#34;&amp;gt;http://www.mydomain.com/liferay&amp;lt;/a&amp;gt; I am redirected to &amp;lt;a href=&amp;#34;https://www.mydomain.com:9000/liferay&amp;#34; target=&amp;#34;_blank&amp;#34;&amp;gt;https://www.mydomain.com:9000/liferay&amp;lt;/a&amp;gt;. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;So now for the redirect at least all I need to do is get rid of the 9000 on the URL. Hopefully once I&amp;amp;#39;m able to log in the links will also be created correctly.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I tried setting web.server.port to 443 but it didn&amp;amp;#39;t change anything.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;-Dave&amp;lt;br /&amp;gt;</summary>
    <dc:creator>David Eagen</dc:creator>
    <dc:date>2006-07-28T18:10:40Z</dc:date>
  </entry>
  <entry>
    <title>Links being created incorrectly</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81425" />
    <author>
      <name>Joseph Shum</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81425</id>
    <updated>2006-07-28T16:45:21Z</updated>
    <published>2006-07-28T16:45:21Z</published>
    <summary type="html">&lt;blockquote&gt;&amp;lt;br /&amp;gt;Hi,&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Could explain more on how to change the url using Admin Portlet. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I have a similar post &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;a href=&amp;#34;http://www.liferay.com/web/guest/community/forums/message_boards/message/81446&amp;#34; target=&amp;#34;_blank&amp;#34;&amp;gt;http://www.liferay.com/web/guest/community/forums/message_boards/message/81446&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Regards,&amp;lt;br /&amp;gt;Nagendra&amp;lt;br /&amp;gt;&lt;/blockquote&gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;click on enterprise tab of admin portlet. you will see PortalURL and HomeURL.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;joe</summary>
    <dc:creator>Joseph Shum</dc:creator>
    <dc:date>2006-07-28T16:45:21Z</dc:date>
  </entry>
  <entry>
    <title>Links being created incorrectly</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81423" />
    <author>
      <name>Raja Nagendra Kumar</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81423</id>
    <updated>2006-07-28T16:01:25Z</updated>
    <published>2006-07-28T16:01:25Z</published>
    <summary type="html">Hi,&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Could explain more on how to change the url using Admin Portlet. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I have a similar post &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;a href=&amp;#34;http://www.liferay.com/web/guest/community/forums/message_boards/message/81446&amp;#34; target=&amp;#34;_blank&amp;#34;&amp;gt;http://www.liferay.com/web/guest/community/forums/message_boards/message/81446&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Regards,&amp;lt;br /&amp;gt;Nagendra</summary>
    <dc:creator>Raja Nagendra Kumar</dc:creator>
    <dc:date>2006-07-28T16:01:25Z</dc:date>
  </entry>
  <entry>
    <title>Links being created incorrectly</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81421" />
    <author>
      <name>Joseph Shum</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81421</id>
    <updated>2006-07-28T15:58:18Z</updated>
    <published>2006-07-28T15:58:18Z</published>
    <summary type="html">&amp;lt;br /&amp;gt;hi david,&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;in portal.properties&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;    #&amp;lt;br /&amp;gt;    # Set the hostname that will be used when the portlet generates URLs.&amp;lt;br /&amp;gt;    # Leaving this blank will mean the host is derived from the servlet&amp;lt;br /&amp;gt;    # container.&amp;lt;br /&amp;gt;    #&amp;lt;br /&amp;gt;    web.server.host=&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;    #&amp;lt;br /&amp;gt;    # Set the preferred protocol.&amp;lt;br /&amp;gt;    #&amp;lt;br /&amp;gt;    #web.server.protocol=https&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;hope this help.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;joe</summary>
    <dc:creator>Joseph Shum</dc:creator>
    <dc:date>2006-07-28T15:58:18Z</dc:date>
  </entry>
  <entry>
    <title>Links being created incorrectly</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81419" />
    <author>
      <name>David Eagen</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81419</id>
    <updated>2006-07-28T15:40:21Z</updated>
    <published>2006-07-28T15:40:21Z</published>
    <summary type="html">&lt;blockquote&gt;&amp;lt;br /&amp;gt;You can change the portal url in the Admin portlet.&amp;lt;br /&amp;gt;&lt;/blockquote&gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Unfortunately that doesn&amp;amp;#39;t work. I set it both the Home URL and Portal URL to www.mydomain.com/liferay and that didn&amp;amp;#39;t change the way the links are built.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;-Dave</summary>
    <dc:creator>David Eagen</dc:creator>
    <dc:date>2006-07-28T15:40:21Z</dc:date>
  </entry>
  <entry>
    <title>Links being created incorrectly</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81417" />
    <author>
      <name>Alexander Chow</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81417</id>
    <updated>2006-07-28T15:28:55Z</updated>
    <published>2006-07-28T15:28:55Z</published>
    <summary type="html">You can change the portal url in the Admin portlet.</summary>
    <dc:creator>Alexander Chow</dc:creator>
    <dc:date>2006-07-28T15:28:55Z</dc:date>
  </entry>
  <entry>
    <title>Links being created incorrectly</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81412" />
    <author>
      <name>David Eagen</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=81412</id>
    <updated>2006-07-28T14:44:05Z</updated>
    <published>2006-07-28T14:44:05Z</published>
    <summary type="html">I&amp;amp;#39;ve installed Liferay on JBoss with an Apache front end. I&amp;amp;#39;m able to see the main page just fine and log in. But once I log in all links are hardcoded to localhost:9000. I&amp;amp;#39;m running JBoss on port 9000. I can&amp;amp;#39;t access anything after logging in because the links are incorrect.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;How can I get Liferay to either generate relative links or at least have the server/port information that outside users access it with?&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;-Dave</summary>
    <dc:creator>David Eagen</dc:creator>
    <dc:date>2006-07-28T14:44:05Z</dc:date>
  </entry>
</feed>
