I've recently moved a PHP project I'm working on to a VM running Apache 2.4.9 from a physical box running Apache 2.2.11. I have setup a VirtualHost for the project similar to what I had on the 2.2 box. I know there are differences between 2.2 and 2.4, which I'm pretty sure I've addressed in my 2.4 Virtualhost config, but I seem to be missing something.
When I point my browser to the URL of my VM for my project VirtualHost (http://project.dev.lan, in this case), all I get it a blank (white) screen. I have another VirtualHost setup for the default Document root and it seems to be working just fine; the page comes up as expected.
Can someone help steer me in the right direction?
apachectl -S returns:
VirtualHost configuration: *:80 is a NameVirtualHost default server localhost (/usr/local/etc/apache2/extra/httpd-vhosts.conf:40) port 80 namevhost localhost (/usr/local/etc/apache2/extra/httpd-vhosts.conf:40) alias 192.168.0.130 port 80 namevhost project.dev.lan (/usr/local/etc/apache2/extra/httpd-vhosts.conf:46) alias project.dev.vm ServerRoot: "/usr/local/apache2" Main DocumentRoot: "/data/www/apache2:80" Main ErrorLog: "/var/log/apache2/error_log" Mutex rewrite-map: using_defaults Mutex proxy: using_defaults Mutex default: dir="/usr/local/apache2/logs/" mechanism=default Mutex mpm-accept: using_defaults Mutex proxy-balancer-shm: using_defaults PidFile: "/usr/local/apache2/logs/httpd.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="apache2" id=2000 Group: name="www" id=103
My VirtualHost file contains:
<VirtualHost *:80> ServerName localhost ServerAlias 192.168.0.130 DocumentRoot /data/www/apache2:80 </VirtualHost> <VirtualHost *:80> ServerName project.dev.lan ServerAlias project.dev.vm DocumentRoot /data/www/project/SRC DirectoryIndex index.php index.html ServerAdmin email@example.com ErrorLog /var/log/apache2/project.dev.lan-error_log CustomLog /var/log/apache2/project.dev.lan-access_log common <Directory "/data/www/project/SRC"> Options +Indexes +Multiviews +FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>
I can post my httpd.conf if necessary, though I haven't changed much from the default beyond ensuring that my extra/httpd-vhosts.conf file has been included.
Can anyone shed some light on what I'm missing?