掲示板

URL problem when deploying

12年前 に cyril arrighi によって更新されました。

URL problem when deploying

New Member 投稿: 21 参加年月日: 11/06/23 最新の投稿
Hello,
I have an ubuntu Virtual Machine where i've installed liferay, and it works well when i test it with vmware.
Recently, i've put my VM onto a server (DMZ), but it does not work, it's probably the url because the vm is accessible at
http://myadress/SAP

and liferay is looking forward to
http://myadress/web/guest
.
I suppose there is a parameter to set ?
Thanks
thumbnail
12年前 に jelmer kuperus によって更新されました。

RE: URL problem when deploying

Liferay Legend 投稿: 1191 参加年月日: 10/03/10 最新の投稿
In the control panel go to Portal instances.

Edit the instance and see if the virtual host matches the host you have your app deployed to
12年前 に cyril arrighi によって更新されました。

RE: URL problem when deploying

New Member 投稿: 21 参加年月日: 11/06/23 最新の投稿
Hi, sorry, i can't acces the application, when i try to acces the index page, it seems that the css and
the pics are not loaded and when i click a link, i'm redirecting to a wrong url. So i can't acces the control panel.
Thanks
12年前 に cyril arrighi によって更新されました。

RE: URL problem when deploying

New Member 投稿: 21 参加年月日: 11/06/23 最新の投稿
Nobody? emoticon
thumbnail
12年前 に jelmer kuperus によって更新されました。

RE: URL problem when deploying

Liferay Legend 投稿: 1191 参加年月日: 10/03/10 最新の投稿
So if you go to http://myadress/group/control_panel you are redirected ?

Is there an apache in front of your server ? If so try accessing it on port 8080 to bypass any rewrites you might have configured in apache
12年前 に cyril arrighi によって更新されました。

RE: URL problem when deploying

New Member 投稿: 21 参加年月日: 11/06/23 最新の投稿
Hi, i can't access to this url, is there another way to set this parameter ? with xml files for example
thumbnail
12年前 に jelmer kuperus によって更新されました。

RE: URL problem when deploying

Liferay Legend 投稿: 1191 参加年月日: 10/03/10 最新の投稿
Its stored in the database

select virtualHost from Company;
12年前 に cyril arrighi によって更新されました。

RE: URL problem when deploying

New Member 投稿: 21 参加年月日: 11/06/23 最新の投稿
Hi,
I've tried to set this column to http://myadress/SAP but it does not solved my problem.
Thanks
thumbnail
12年前 に Philippe CHEIPE によって更新されました。

RE: URL problem when deploying

Junior Member 投稿: 61 参加年月日: 10/08/12 最新の投稿
When you said "Recently, i've put my VM onto a server (DMZ)" what did you do exactly ?

Which version of Liferay are you using ?
12年前 に cyril arrighi によって更新されました。

RE: URL problem when deploying

New Member 投稿: 21 参加年月日: 11/06/23 最新の投稿
Hi,
I'm using liferay 6.0.6 bundled with tomcat 6
In my company, we've got a server wich contains multiple vm, each vm as an ip address which is accessible by internet (my vm's adress http://myaddress/SAP).
We've redirected this ip adress to my vm (which contains the liferay tomcat on the 8080 port) http://myaddress/SAP ==> myvmlocaladdress:8080.
and julien, when i go to http://[IP_ADDRESS]/web/guest/ nothing happens, but http://[IP_ADDRESS]/SAP/web/guest/ render the content without css and pics, and the links redirect me to http://[IP_ADDRESS]/mypage instead of http://[IP_ADDRESS]/SAP/mapage
Thanks
thumbnail
12年前 に Philippe CHEIPE によって更新されました。

RE: URL problem when deploying

Junior Member 投稿: 61 参加年月日: 10/08/12 最新の投稿
Ok, so if I understand well, you have a server or a device that make the translation from myServer/SAP to myLocalAdress:8080 .

Is it an Apache server ?
12年前 に cyril arrighi によって更新されました。

RE: URL problem when deploying

New Member 投稿: 21 参加年月日: 11/06/23 最新の投稿
Yes it's an apache server.
thumbnail
12年前 に Philippe CHEIPE によって更新されました。

RE: URL problem when deploying

Junior Member 投稿: 61 参加年月日: 10/08/12 最新の投稿
OK, this is the problem.

you are trying to move your Liferay from a root context (/) to a dedicated context (/SAP) using your Apache.

It's quite hard to do, and this is not specific to Liferay. You have to use the Apache ReverseProxy functionnalities.

With the Reverse proxy you will be able to rewrite URLs in both ways:
- When the client request /SAP, it will convert to /
- And when the server will generate a page with some / URLs he will add the /SAP.

The problem with this kind of technologies is that it does not work for javascript generated URLs, etc...

The best would be to install your Liferay not on the root context of the Tomcat server but on a /SAP context

You would translate your myserver/SAP to myLocalServer/SAP which is much more easier (but not painless in some cases) !
thumbnail
12年前 に Julien Bonjean によって更新されました。

RE: URL problem when deploying

Junior Member 投稿: 57 参加年月日: 09/06/10 最新の投稿
What happens if you go to http://[IP_ADDRESS]/web/guest/ ? (IP_ADDRESS is important, don't use any hostname)
thumbnail
12年前 に jelmer kuperus によって更新されました。

RE: URL problem when deploying

Liferay Legend 投稿: 1191 参加年月日: 10/03/10 最新の投稿
It needs to be myadress

not http://myadress/SAP

also make sure you restart your server after changing that property