Machine: Mac Book Pro Web Server: Apache
I'm building a Wordpress site locally and I've set it up as a virtual host, I've made the following changes to http-vhosts.conf:
<VirtualHost *:80> ServerAdmin email@example.com DocumentRoot "/Users/username/Documents/Websites/projectname/index.php" ServerName projectname.dev ErrorLog "/private/var/log/apache2/projectname.dev-error_log" CustomLog "/private/var/log/apache2/projectname.dev-access_log" common </VirtualHost>
and I've made an entry in the /etc/hosts file as follows:
127.0.0.1 localhost projectname.dev
I've also changed the siteurl and home options in the wp_options table to be http://projectname.dev
but when I access the site via the browser (http://projectname.dev) I just get plain text, the theme/images/stylesheets are not picked up. Looking at the access_log, I can see a whole lot of 404 errors.
Any help appreciated, I've been playing around with it for a while now.