I have quite a strange problem with my Apache server.
I have two files containing <?php phpinfo(); ?>. They are both placed on the same server, however in different vhosts. The vhosts look like this:
First one:
<VirtualHost *:80>
DocumentRoot /var/www/[...]/public_html
ServerName something
<Directory />
AllowOverride All
</Directory>
</VirtualHost>
Second one:
<VirtualHost *:80>
DocumentRoot /var/www/[...]/public_html
ServerName something
ServerAlias something
<Directory />
AllowOverride All
</Directory>
</VirtualHost>
As you see they are almost equal. However, if I point to the phpinfo.php on the second vhost, the source is sent to the client. On the first one phpinfo is executed and shown to the user successfully.
What can cause this difference?