cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy to internet access

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

An Alfresco server has no access to internet without a proxy. It needs this access to use the Dashlet RSS. I have tried to configure the proxy like this :

/opt/Alfresco/tomcat/scripts/ctl.sh
export JAVA_OPTS="-XX:MaxPermSize=512m -Xms512m -Xmx1024m -Dalfresco.home=/opt/Alfresco -Dcom.sun.management.jmxremote -Dhttp.proxyHost=proxyhost -Dhttp.proxyPort=proxyport -Dhttp.proxyUser=username -Dhttp.proxyPassword=supersecret"

But I cannot log in Share (ok with explorer). No message in the logs (Alfresco 3.4D, RedHat).

In Share I get this message after login :


The remote server may be unavailable or your authentication details have not been recognized.

What did I wrong ?

(on french : http://forums.alfresco.com/fr/viewtopic.php?f=6&t=4990)
2 REPLIES 2

dranakan
Champ on-the-rise
Champ on-the-rise
On the french forum someone advises to modify the endpoint-url" in the alfresco-feed (share-config-custom.xml)

What do I change inside ?

By default, /opt/Alfresco/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml
 <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>

Thank you

dranakan
Champ on-the-rise
Champ on-the-rise
Need to add :
-Dhttp.nonProxyHosts=*.domaine.ch|localhost
(http://issues.alfresco.com/jira/browse/ALF-1518)

To use a proxy, add in /opt/Alfresco/tomcat/scripts/ctl.sh :
export JAVA_OPTS="-XX:MaxPermSize=512m -Xms512m -Xmx1024m -Dalfresco.home=/opt/Alfresco -Dcom.sun.management.jmxremote -Dhttp.proxyHost=proxyhost -Dhttp.proxyPort=proxyport -Dhttp.proxyUser=username -Dhttp.proxyPassword=supersecret -Dhttp.nonProxyHosts=*.domaine.ch|localhost"