Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
ferney bedoya
Remote Access in Liferay
December 17, 2012 12:02 PM
Answer

ferney bedoya

Rank: New Member

Posts: 8

Join Date: April 18, 2012

Recent Posts

Hi,

I'm in trouble, well I have a VM where deploy my Liferay portal but when I access into the VM it works perfect, but when I acces from real machine the portal behaivor different por example de URL change. I have for example a page named home, in VM the URL is ip/web/guest/home but en real machine is /ip/inicio. Why?.

I am using redirect apache-tomcat. Portal is deployed in tomcat, but accessed by apache. actually have in virtual host option my VM ip, in the friendly URL of public pages appear ip/web/guest/page.

I don´t know if it could be the problem, but when i try to delete a web content from control panel in browser console show a error message like this

1Uncaught TypeError: Cannot call method 'all' of null everything.jsp:3
2Util._defaultSubmitFormFn everything.jsp:3
3a.fireComplex everything.jsp:1
4b.CustomEvent.fire everything.jsp:1
5d.fire everything.jsp:1
6Liferay.publish.defaultFn everything.jsp:3
7(anonymous function) /group/control_panel/manage?p_p_id=15&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10180&refererPlid=10613 (1):1
.

And not execute the action. the same happen when try to delete a blog from blog's options.

When i try to do it in VM it is executed normally.

What could be happening.

part of my portal-ext.properties

 1
 2
 3#
 4# Explicitly exclude attributes that are shared from the portal to portlets.
 5#
 6session.shared.attributes.excludes=USER_PASSWORD
 7#
 8# Set this to true to store the user’s password in the session.
 9#
10session.store.password=true
11
12setup.wizard.enabled=false
13
14browser.cache.signed.in.disabled=true
15
16
17web.server.http.port=8050
18web.server.https.port=443
19web.server.host=192.168.15.136
20company.security.auth.requires.https=true
21
22web.server.protocol=https
23
24tunnel.servlet.hosts.allowed=127.0.0.1,192.168.15.136
25tunnel.servlet.https.required=true
26#axis.servlet.hosts.allowed=127.0.0.1,192.168.15.136
27#axis.servlet.https.required=true
28
29
30axis.servlet.hosts.allowed=127.0.0.1,192.168.15.136,0:0:0:0:0:0:0:1%0 
31axis.servlet.https.required=true
32
33redirect.url.ips.allowed=127.0.0.1,192.168.2.123
34
35portal.ctx=/
36
37locale.prepend.friendly.url.style=1
38
39theme.css.fast.load=false
40theme.images.fast.load=false
41javascript.fast.load=true
42javascript.log.enabled=false
43layout.template.cache.enabled=false
44#browser.launcher.url=
45#combo.check.timestamp=true
46#freemarker.engine.cache.storage=soft:1
47#freemarker.engine.modification.check.interval=0
48#openoffice.cache.enabled=false
49#velocity.engine.resource.manager.cache.enabled=false
50com.liferay.portal.servlet.filters.cache.CacheFilter=false
51com.liferay.portal.servlet.filters.themepreview.ThemePreviewFilter=true


thanks a lot
Hitoshi Ozawa
RE: Remote Access in Liferay
December 17, 2012 1:23 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Just seems like your vm setup. I have the same system architecture on VMware and KVM working in production without any problem.
Paul Robinson
RE: Remote Access in Liferay
December 17, 2012 2:15 PM
Answer

Paul Robinson

Rank: Junior Member

Posts: 45

Join Date: December 29, 2008

Recent Posts

Assuming you're using apache httpd server on port 80 the following property may be incorrect:

web.server.http.port=8050

Normally when fronting Tomcat with Apache this will be

web.server.http.port=80

If you're accessing Liferay direct on the VM (bypassing Apache) this could explain the error.

Cheers,
Paul
ferney bedoya
RE: Remote Access in Liferay
December 18, 2012 4:25 AM
Answer

ferney bedoya

Rank: New Member

Posts: 8

Join Date: April 18, 2012

Recent Posts

Thanks for your answer, in my server.xml my connector port is 8050 for http access whatever it is not the matter cuz it works with htttps.
ferney bedoya
RE: Remote Access in Liferay
December 18, 2012 4:34 AM
Answer

ferney bedoya

Rank: New Member

Posts: 8

Join Date: April 18, 2012

Recent Posts

Thanks for your answer Hitoshi, I think the problem could no be the VM, if I access with https in VM is the same error. I think the error is for the URL cuz the form is null and cant't execute the action,

Some other suggestion?.

I'm using Liferay 6.1.0 CE with tomcat 7.0.23.

Thanks for your time.
Sushil Saini
RE: Remote Access in Liferay
December 18, 2012 5:34 AM
Answer

Sushil Saini

Rank: Regular Member

Posts: 104

Join Date: July 27, 2011

Recent Posts

Hi ferney,

I am also using the similar type of the setup and it is working fine.

Can you please provide what are the URLs you are using while accessing on the VM machine and while accessing from outside the VM ?

Basically, wanted to confirm, in both the cases you are going through the web server.

And Can you also try by changing the following config to 80.
web.server.http.port=80

Thanks & Regards
Sushil Kumar