Skip to content

Instantly share code, notes, and snippets.

@michaelhoang
Created October 23, 2014 10:33
Show Gist options
  • Save michaelhoang/9892838891811403955e to your computer and use it in GitHub Desktop.
Save michaelhoang/9892838891811403955e to your computer and use it in GitHub Desktop.
Virtual Host In Linux
<VirtualHost *:80>
ServerName wp.local
DocumentRoot "/var/www/wp"
<Directory "/var/www/wp">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
## Must have
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/wp/$1
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment