Fórum
RE: Internet Proxy Settings
Rahul Sharma, modificado 15 Anos atrás.
Internet Proxy Settings
Regular Member Postagens: 195 Data de Entrada: 25/07/08 Postagens Recentes
Hi,
Where to change the proxy settings for connecting to Plugin Repository at http://plugins.liferay.com/community.
Thanks
Where to change the proxy settings for connecting to Plugin Repository at http://plugins.liferay.com/community.
Thanks
Rahul Sharma, modificado 15 Anos atrás.
RE: Internet Proxy Settings
Regular Member Postagens: 195 Data de Entrada: 25/07/08 Postagens Recentes
I tried doing changes in sytem.ext.properties file but nothing happened.
Any one.......any idea how to do this.
Thanks in advance
Any one.......any idea how to do this.
Thanks in advance
Frederik Weishäupl, modificado 15 Anos atrás.
RE: Internet Proxy Settings
Junior Member Postagens: 46 Data de Entrada: 08/01/06 Postagens Recentes
Have you solved this issue? I've got the same problem.
Thx.
Regards
Frederik
Thx.
Regards
Frederik
Rahul Sharma, modificado 15 Anos atrás.
RE: Internet Proxy Settings
Regular Member Postagens: 195 Data de Entrada: 25/07/08 Postagens Recentes
Still not able to figure out , how to connect to plugin repository
Holger Widmann, modificado 15 Anos atrás.
RE: Internet Proxy Settings
New Member Postagens: 4 Data de Entrada: 27/11/08 Postagens Recentes
This helped me to get acces to the plugin repository from behind a proxy:
Found in this post.
I've tracked down a bit of code in Liferay 5.1.0 that needs to be rewritten. In com.liferay.portal.util.HttpImpl where it says:public boolean isNonProxyHost(String host) { if (_nonProxyHostsPattern [b]== null ||[/b] _nonProxyHostsPattern.matcher(host).matches()) { return true; } else { return false; } }
it SHOULD say:public boolean isNonProxyHost(String host) { if (_nonProxyHostsPattern [b]!= null &&[/b] _nonProxyHostsPattern.matcher(host).matches()) { return true; } else { return false; } }
To avoid recompiling code, if you are behind a proxy make sure you set the system property http.nonProxyHosts to a non null value. Basically, set it to "dummy.at.nowhere" if you don't have real values to put in there. Set http.proxyPort and http.proxyHost normally.
Under SJAS/Glassfish you can easily set the system properties in Admin Console/Application Server/JVM Settings/JVM Options.
Found in this post.
David Tildesley, modificado 15 Anos atrás.
RE: Internet Proxy Settings
Junior Member Postagens: 34 Data de Entrada: 04/08/08 Postagens Recentes
5.2.2 still has this faulty code as below. The workaround is as described to have at least one nonProxyHost specified. You should put the proxy settings in the system-ext.properties file. Even though the admin manual is not clear, you can still create a system-ext.properties file and put it in the same place as portal-ext.properties file and expect Liferay to pick it up.
NB1. If your proxy server requires authentication you should put the authentication settings in the portal-ext.properties file I believe (although I have not tested this out).
NB2. This is nothing to do with reverse proxy server (where clients access liferay portal via a DMZ reverse proxy server such as Apache with mod_proxy.
NB3. This is everything to do with allowing liferay application and portlets to access an external web resource via a (forward) proxy server e.g. to allow acess to the official and community plugin repositories.
http.proxyHost=<your proxy host name>
https.proxyHost=<your proxy host name>
https.proxyPort=8080
http.proxyPort=8080
http.nonProxyHosts="localhost"
</your></your>
NB1. If your proxy server requires authentication you should put the authentication settings in the portal-ext.properties file I believe (although I have not tested this out).
NB2. This is nothing to do with reverse proxy server (where clients access liferay portal via a DMZ reverse proxy server such as Apache with mod_proxy.
NB3. This is everything to do with allowing liferay application and portlets to access an external web resource via a (forward) proxy server e.g. to allow acess to the official and community plugin repositories.
Holger Widmann:
This helped me to get acces to the plugin repository from behind a proxy:
I've tracked down a bit of code in Liferay 5.1.0 that needs to be rewritten. In com.liferay.portal.util.HttpImpl where it says:public boolean isNonProxyHost(String host) { if (_nonProxyHostsPattern [b]== null ||[/b] _nonProxyHostsPattern.matcher(host).matches()) { return true; } else { return false; } }
it SHOULD say:public boolean isNonProxyHost(String host) { if (_nonProxyHostsPattern [b]!= null &&[/b] _nonProxyHostsPattern.matcher(host).matches()) { return true; } else { return false; } }
To avoid recompiling code, if you are behind a proxy make sure you set the system property http.nonProxyHosts to a non null value. Basically, set it to "dummy.at.nowhere" if you don't have real values to put in there. Set http.proxyPort and http.proxyHost normally.
Under SJAS/Glassfish you can easily set the system properties in Admin Console/Application Server/JVM Settings/JVM Options.
Found in this post.
Kolja Köster, modificado 14 Anos atrás.
RE: Internet Proxy Settings
Regular Member Postagens: 164 Data de Entrada: 11/05/09 Postagens RecentesDavid Tildesley:
5.2.2 still has this faulty code as below. The workaround is as described to have at least one nonProxyHost specified. You should put the proxy settings in the system-ext.properties file. Even though the admin manual is not clear, you can still create a system-ext.properties file and put it in the same place as portal-ext.properties file and expect Liferay to pick it up.
Could anybode state, where to put this file? Changing catalina.properties and portal.properties did not work for me. There is no system-ext.properties in the standard bundle.
Regards
Kolja
Arnaud Deslandes, modificado 14 Anos atrás.
RE: Internet Proxy Settings
New Member Postagens: 23 Data de Entrada: 25/06/07 Postagens Recentes
You just have to create this plain text file, containing only :
http.proxyHost=xx.xx.xx.xx
https.proxyHost=xx.xx.xx.xx
http.proxyPort=xx
https.proxyPort=xx
http.nonProxyHosts="localhost"
and place it in {appserver}/webapps/ROOT/WEB-INF/classes
http.proxyHost=xx.xx.xx.xx
https.proxyHost=xx.xx.xx.xx
http.proxyPort=xx
https.proxyPort=xx
http.nonProxyHosts="localhost"
and place it in {appserver}/webapps/ROOT/WEB-INF/classes
Kolja Köster, modificado 14 Anos atrás.
RE: Internet Proxy Settings
Regular Member Postagens: 164 Data de Entrada: 11/05/09 Postagens RecentesArnaud Deslandes:
You just have to create this plain text file, containing only :
http.proxyHost=xx.xx.xx.xx
https.proxyHost=xx.xx.xx.xx
http.proxyPort=xx
https.proxyPort=xx
http.nonProxyHosts="localhost"
and place it in {appserver}/webapps/ROOT/WEB-INF/classes
I apologize for taking so long for a reply. This approach worked. Many thanks.
Regards
Kolja
Christian Merkel, modificado 14 Anos atrás.
RE: Internet Proxy Settings
Regular Member Postagens: 111 Data de Entrada: 14/12/09 Postagens Recentes
I got the same problem!
But our Proxy needs authentication!
What lines i have to add
something like:
??
Thx for the help!
But our Proxy needs authentication!
What lines i have to add
something like:
http.user=admin
http.password=password
??
Thx for the help!
William Fleming, modificado 13 Anos atrás.
RE: Internet Proxy Settings
Regular Member Postagens: 180 Data de Entrada: 15/09/10 Postagens Recentes
I had issues but found that you need it entered in
catalina.properties and you portal-ext.properties
http.proxyHost=yourProxyURL
http.proxyPort=yourProxyPort
http.proxyUser=yourUserName
http.proxyPassword=yourPassword
Boom! Bask in glory on the internet in your portal.
catalina.properties and you portal-ext.properties
http.proxyHost=yourProxyURL
http.proxyPort=yourProxyPort
http.proxyUser=yourUserName
http.proxyPassword=yourPassword
Boom! Bask in glory on the internet in your portal.
Yan Naing Oo, modificado 12 Anos atrás.
RE: Internet Proxy Settings
Regular Member Postagens: 179 Data de Entrada: 17/02/11 Postagens RecentesWilliam Fleming:
I had issues but found that you need it entered in
catalina.properties and you portal-ext.properties
http.proxyHost=yourProxyURL
http.proxyPort=yourProxyPort
http.proxyUser=yourUserName
http.proxyPassword=yourPassword
Boom! Bask in glory on the internet in your portal.
Hi William,
I have to ask you for following value, that i mentioned is anything wrong ? let me know if you can correct ?
http.proxyHost=yourProxyURL (by pass URL based on browser options) ?
http.proxyPort=8080 (default) ?
http.proxyUser= if no user - leave blank ?
http.proxyPassword= if no pwd - leave blank ?
Thanks
Jevon Wright, modificado 12 Anos atrás.
RE: Internet Proxy Settings
New Member Postagens: 8 Data de Entrada: 06/12/11 Postagens RecentesYan Naing Oo:
http.proxyHost=yourProxyURL (by pass URL based on browser options) ?
http.proxyPort=8080 (default) ?
http.proxyUser= if no user - leave blank ?
http.proxyPassword= if no pwd - leave blank ?
Thanks
Yes, if your proxy does not have a username or password you can leave these fields blank, or (even better) not include them in your .properties file at all.