Forums de discussion

URL problem when deploying

cyril arrighi, modifié il y a 12 années.

URL problem when deploying

New Member Publications: 21 Date d'inscription: 23/06/11 Publications récentes
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
jelmer kuperus, modifié il y a 12 années.

RE: URL problem when deploying

Liferay Legend Publications: 1191 Date d'inscription: 10/03/10 Publications récentes
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
cyril arrighi, modifié il y a 12 années.

RE: URL problem when deploying

New Member Publications: 21 Date d'inscription: 23/06/11 Publications récentes
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
cyril arrighi, modifié il y a 12 années.

RE: URL problem when deploying

New Member Publications: 21 Date d'inscription: 23/06/11 Publications récentes
Nobody? emoticon
thumbnail
jelmer kuperus, modifié il y a 12 années.

RE: URL problem when deploying

Liferay Legend Publications: 1191 Date d'inscription: 10/03/10 Publications récentes
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
cyril arrighi, modifié il y a 12 années.

RE: URL problem when deploying

New Member Publications: 21 Date d'inscription: 23/06/11 Publications récentes
Hi, i can't access to this url, is there another way to set this parameter ? with xml files for example
thumbnail
jelmer kuperus, modifié il y a 12 années.

RE: URL problem when deploying

Liferay Legend Publications: 1191 Date d'inscription: 10/03/10 Publications récentes
Its stored in the database

select virtualHost from Company;
cyril arrighi, modifié il y a 12 années.

RE: URL problem when deploying

New Member Publications: 21 Date d'inscription: 23/06/11 Publications récentes
Hi,
I've tried to set this column to http://myadress/SAP but it does not solved my problem.
Thanks
thumbnail
Philippe CHEIPE, modifié il y a 12 années.

RE: URL problem when deploying

Junior Member Publications: 61 Date d'inscription: 12/08/10 Publications récentes
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 ?
cyril arrighi, modifié il y a 12 années.

RE: URL problem when deploying

New Member Publications: 21 Date d'inscription: 23/06/11 Publications récentes
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
Philippe CHEIPE, modifié il y a 12 années.

RE: URL problem when deploying

Junior Member Publications: 61 Date d'inscription: 12/08/10 Publications récentes
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 ?
cyril arrighi, modifié il y a 12 années.

RE: URL problem when deploying

New Member Publications: 21 Date d'inscription: 23/06/11 Publications récentes
Yes it's an apache server.
thumbnail
Philippe CHEIPE, modifié il y a 12 années.

RE: URL problem when deploying

Junior Member Publications: 61 Date d'inscription: 12/08/10 Publications récentes
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
Julien Bonjean, modifié il y a 12 années.

RE: URL problem when deploying

Junior Member Publications: 57 Date d'inscription: 10/06/09 Publications récentes
What happens if you go to http://[IP_ADDRESS]/web/guest/ ? (IP_ADDRESS is important, don't use any hostname)
thumbnail
jelmer kuperus, modifié il y a 12 années.

RE: URL problem when deploying

Liferay Legend Publications: 1191 Date d'inscription: 10/03/10 Publications récentes
It needs to be myadress

not http://myadress/SAP

also make sure you restart your server after changing that property