Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a hosted Exchange server on Rackspace. I am using it to test Exchange Web Services integrated with my personal web application. Rackspace provides an Autodiscovery URL through which EWS connections can be made.

I can connect just fine locally. However, when I try to test the same functionality on my staging servers (which are Amazon ec2 instances), I do NOT get an API response. In fact, the httpd thread serving the end user just hangs indefinitely, which means the user is not able to load ANY other pages in my app, even after the timeout interval.

I have checked the error/access logs for apache, php, and even my load balancer's access logs. None of these resources provided any insight to the problem.

As I said, I have no problem connecting to the exchange server from my local copy of my web app. Why would this be the case? What do I need to do to fix connectivity on my staging servers?

share|improve this question

This sounds like something in EC2 blocking your access to the EWS URL. Do you need to open a EC2 firewall port to allow your EC2 box to talk to the EWS server? I can't imagine that hosted EWS would care where the HTTP request was coming from.

share|improve this answer
Not that I know of. I explicitly opened the relevant ports to the Autodiscovery IP just to be sure. Same result. – PingDynasty Aug 21 '12 at 13:59
Can you telnet from the EC2 host to https on autodiscovery? it should connect and show blank screen. – Bret Fisher Aug 21 '12 at 17:04
Yes, telnet works, and ping, etc. – PingDynasty Aug 21 '12 at 22:52
What OS are the EC2 instances? If their windows can you use IE to goto or if linux use wget. – Bret Fisher Aug 21 '12 at 22:58
to be sure your Exchange server is all setup correctly for web services, be sure to use until it's all green. – Bret Fisher Aug 21 '12 at 22:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.