Skip to content

Instantly share code, notes, and snippets.

@bobdobbs
Created January 27, 2022 07:27
Show Gist options
  • Save bobdobbs/0238f2a9fc8014bb85fce2a15fe332dc to your computer and use it in GitHub Desktop.
Save bobdobbs/0238f2a9fc8014bb85fce2a15fe332dc to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
DocumentRoot /var/www/mysitelocaldev
Servername rateyourlandlord.localdev
<Directory /var/www/mysite.localdev>
AllowOverride none
FallbackResource /index.php
Require all granted
Options Indexes FollowSymLinks MultiViews
</Directory>
ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/var/run/php/mysite.sock|fcgi://127.0.0.1:9000/var/www/mysite.localdev
DirectoryIndex index.php /index.php
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/mysite.localdev.access-log combined
ErrorLog ${APACHE_LOG_DIR}/mysite.localdev.error-log
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment