Configuring local Alfresco Community server behind Microsoft ISA Proxy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2013 05:50 PM
Hi all,
This isn't really a question as much as something that I found interesting. At work, I am behind a corporate proxy, so I had to put my proxy settings in my -Dhttp.proxyHost, -Dhttp.proxyPort, etc. I was also using a custom port (8090) instead of 8080. Unfortunately, when I tried to login, I was receiving this error in the log:
2013-08-23 11:35:52,702 INFO [webscripts.connector.RemoteClient] [http-apr-8090-exec-9] Error status 503 Connection refused: connect
java.net.ConnectException: Connection refused: connect
The proxy information was correct. It turned out that all requests were then trying to go through the proxy server, which obviously had no idea what localhost was. So, I had to update share-config-custom.xml with the following (replace myServer) and the custom port:
And, I also had to make sure that the setting -Dhttp.nonProxyHosts included the domain of my local machine. So, it had to be like this:
-Dhttp.nonProxyHosts=*.mydomain.com
I hope that helps someone else. It took me a few hours to figure that one out.
Regards,
Eric
This isn't really a question as much as something that I found interesting. At work, I am behind a corporate proxy, so I had to put my proxy settings in my -Dhttp.proxyHost, -Dhttp.proxyPort, etc. I was also using a custom port (8090) instead of 8080. Unfortunately, when I tried to login, I was receiving this error in the log:
2013-08-23 11:35:52,702 INFO [webscripts.connector.RemoteClient] [http-apr-8090-exec-9] Error status 503 Connection refused: connect
java.net.ConnectException: Connection refused: connect
The proxy information was correct. It turned out that all requests were then trying to go through the proxy server, which obviously had no idea what localhost was. So, I had to update share-config-custom.xml with the following (replace myServer) and the custom port:
<config evaluator="string-compare" condition="Remote"> <remote> <endpoint> <id>alfresco-noauth</id> <name>Alfresco - unauthenticated access</name> <description>Access to Alfresco Repository WebScripts that do not require authentication</description> <connector-id>alfresco</connector-id> <endpoint-url>http://<myServer-with full domain name>:8090/alfresco/s</endpoint-url> <identity>none</identity> </endpoint> <endpoint> <id>alfresco</id> <name>Alfresco - user access</name> <description>Access to Alfresco Repository WebScripts that require user authentication</description> <connector-id>alfresco</connector-id> <endpoint-url>http://<myServer-with full domain name>:8090/alfresco/s</endpoint-url> <identity>user</identity> </endpoint> <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://<myServer-with full domain name>:8090/alfresco/s</endpoint-url> <basic-auth>true</basic-auth> <identity>user</identity> </endpoint> <endpoint> <id>activiti-admin</id> <name>Activiti Admin UI - user access</name> <description>Access to Activiti Admin UI, that requires user authentication</description> <connector-id>activiti-admin-connector</connector-id> <endpoint-url>http://<myServer-with full domain name>:8090/alfresco/activiti-admin</endpoint-url> <identity>user</identity> </endpoint> </remote> </config>
And, I also had to make sure that the setting -Dhttp.nonProxyHosts included the domain of my local machine. So, it had to be like this:
-Dhttp.nonProxyHosts=*.mydomain.com
I hope that helps someone else. It took me a few hours to figure that one out.
Regards,
Eric
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2014 08:00 AM
Hi team ,
here i have configured the alfresco with jboss-eap-6 and here i am running my jboss on 9090 port (here iam using Oracle DB so i have changed the jboss port to 9090).
and than i have deployed alfresco.war and share.war files in JBOSS deploy folder.than i am able to loging alfresco dash board by using (http://127.0.0.1:9090/alfresco).
But when i tried to loging to share dash board (http://127.0.0.1:8080/share)i am gettting error in logs.
17:22:11,333 INFO [org.springframework.extensions.webscripts.connector.RemoteClient] (http-/127.0.0.1:9090-1) Exception calling (GET) http://localhost:8080/alfresco/s/remoteadm/has/alfresco/site-data/template-types/webtemplate.xml?s=s...
17:22:11,334 INFO [org.springframework.extensions.webscripts.connector.RemoteClient] (http-/127.0.0.1:9090-1) Error status 503 Connection refused: connect: java.net.ConnectException: Connection refused: connect
so for this i need to change the port number in share-config-custom.xml file .so this file is located under the "C:\Alfresco\tomcat\shared\classes\alfresco\web-extension" path.
but the share-config-custom.xml file is not there in share.war and alfresco.war file .so where i need to place the shared,endorsed file in JBOSS-EAP-6 . other wise form which .xml file i need to change.
so here i placed the folders in JBOSS_HOME/standalone directory(JBOSS_HOME/standalone/shared,JBOSS_HOME/standalone/endrosed) but it is not any luck i am getting same errors in jboss log file.please help me out in which file i need to change the port for share and alfresco.
please help me out on this.
here i have configured the alfresco with jboss-eap-6 and here i am running my jboss on 9090 port (here iam using Oracle DB so i have changed the jboss port to 9090).
and than i have deployed alfresco.war and share.war files in JBOSS deploy folder.than i am able to loging alfresco dash board by using (http://127.0.0.1:9090/alfresco).
But when i tried to loging to share dash board (http://127.0.0.1:8080/share)i am gettting error in logs.
17:22:11,333 INFO [org.springframework.extensions.webscripts.connector.RemoteClient] (http-/127.0.0.1:9090-1) Exception calling (GET) http://localhost:8080/alfresco/s/remoteadm/has/alfresco/site-data/template-types/webtemplate.xml?s=s...
17:22:11,334 INFO [org.springframework.extensions.webscripts.connector.RemoteClient] (http-/127.0.0.1:9090-1) Error status 503 Connection refused: connect: java.net.ConnectException: Connection refused: connect
so for this i need to change the port number in share-config-custom.xml file .so this file is located under the "C:\Alfresco\tomcat\shared\classes\alfresco\web-extension" path.
but the share-config-custom.xml file is not there in share.war and alfresco.war file .so where i need to place the shared,endorsed file in JBOSS-EAP-6 . other wise form which .xml file i need to change.
so here i placed the folders in JBOSS_HOME/standalone directory(JBOSS_HOME/standalone/shared,JBOSS_HOME/standalone/endrosed) but it is not any luck i am getting same errors in jboss log file.please help me out in which file i need to change the port for share and alfresco.
please help me out on this.
