Apache Rewrites not working due to Akamai
- by nuttyket
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.