i have a problem with my server (VPS with debian+apache2+php5). I have two virtualhosts, one is linked to a ruby webserver and has a PRoxyPass from port 80 to 8080 and the second one is a normal website. Before doing the proxypass thing everything was working fine with PHP but now when i try to load a page, it wont parse and the php file is being downloaded. this is the virtualhost .conf
NameVirtualHost *:80
<VirtualHost domain.com:80>
NameVirtualHost domain.com
DocumentRoot /var/www/domain
ServerName domain.com
</VirtualHost>
<VirtualHost server.domain.com:80>
ProxyPass / http://server.domain.com:8080/
</VirtualHost>
I also tried to add into the httpd.conf the following:
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php5
AddType application/x-httpd-php .html
AddType application/x-httpd-php-source .phps
</IfModule>
I tried to remove and reinstall php5. Any help is appreciated, thank you