I've configured Apache to proxy all requests to foo.bar.com except for the the alias /bazbar. The proxy portion of the configuration works and the proxy pass portion works except that it serves the index.php as a plain text file.
How can I get Apache to serve the php files properly? Here is my configuration.
<VirtualHost *:80> ServerName foo.bar.com Alias /bazbar /var/www/bazbar ProxyPreserveHost On ProxyPass /bazbar ! <Location /bazbar> SetHandler None </Location> <Location /> Order allow,deny allow from all ProxyPass http://localhost:8080 ProxyPassReverse http://localhost:8080 </Location> </VirtualHost>
*note I have confired that php is configured properly because when I go to http://localhost/somescript.php the php renders properly