Apache Rewrites not working due to Akamai

Posted by nuttyket on Pro Webmasters See other posts from Pro Webmasters or by nuttyket
Published on 2012-02-10T10:56:26Z Indexed on 2012/04/13 11:46 UTC
Read the original article Hit count: 395

Filed under:
|

I have a website which is setup with akamai. My domain and subdomains are mapped onto an Akamai IP.

I have written an Apache rewrite which does an internal URL X to another internal URL Y. This rewrite works fine as long as I am testing in my local setup or for those subdomains which are not mapped onto Akamai but directly onto my Public IP.

My suspicion is that while rewriting the request apache is not able to resolve the IP of the app server correctly.

When I add entries to my /etc/hosts file pointing the domain/subdomain to my internal IP the rewrites work.

Now, I have a huge list of subdomains and it can grow as well. Is there another way to fix this problem without having to make entries in the /etc/hosts file ?

I would much appreciate your thoughts.

© Pro Webmasters or respective owner

Related posts about apache

Related posts about rewrite