Skip to content

Instantly share code, notes, and snippets.

@diegoe
Last active January 5, 2021 22:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save diegoe/9797605 to your computer and use it in GitHub Desktop.
Save diegoe/9797605 to your computer and use it in GitHub Desktop.
Personal changes to Homebrew's extra/httpd-vhosts.conf. See on my blog: http://diegoe.be/2014/03/26/setting-up-apache-php-mysql-on-osx-with-homebrew
<VirtualHost *:8080>
<IfModule php7_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
</IfModule>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/Users/diego/Sites"
ServerName localhost
ServerAlias localhost
ErrorLog "/Users/diego/Sites/logs/localhost-error_log"
CustomLog "/Users/diego/Sites/logs/localhost-access_log" common
<Directory /Users/diego/Sites>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
# PHPMyAdmin
Alias /phpmyadmin /usr/local/share/phpmyadmin
<Directory /usr/local/share/phpmyadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
@adius
Copy link

adius commented Nov 24, 2014

For Apache 2.4 the Allow directive is deprecated!
http://stackoverflow.com/a/21555558/1850340

@diegoe
Copy link
Author

diegoe commented Aug 3, 2015

Thanks for the tip @adius. Sorry I never get back to you before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment