Last active
January 5, 2021 22:09
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 [email protected] | |
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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Apache 2.4 the Allow directive is deprecated!
http://stackoverflow.com/a/21555558/1850340