Example of a virtual host for web server Apache version 2.4 config to run a development copy of WordPress CMS:
<VirtualHost *:81> ServerName wpdev.test ServerAlias *.wpdev.test # Indexes + Directory Root. DirectoryIndex index.php index.html DocumentRoot "/Users/taras/wpdev/public_html" ErrorLog "/usr/local/var/log/httpd/wpdev.test/error.log" CustomLog "/usr/local/var/log/httpd/wpdev.test/access.log" common <FilesMatch \.php$> SetHandler "proxy:fcgi://127.0.0.1:9074" </FilesMatch> Options FollowSymLinks </VirtualHost>