Last active
April 27, 2020 12:05
-
-
Save vsg24/ae9256047013b8016b9bd41ceebfe90f to your computer and use it in GitHub Desktop.
Apache 2.4 PHP virtualhost example
This file contains 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 *:80> | |
AddHandler application/x-httpd-php .php | |
ServerAdmin [email protected] | |
DocumentRoot "C:/Users/Vahid Amiri Motlagh/Documents/dev/phpmyadmin" | |
ServerName phpmyadmin.localhost | |
ServerAlias www.phpmyadmin.localhost | |
ErrorLog "C:/Program Files/Apache24/logs/phpmyadmin.localhost-error.log" | |
CustomLog "C:/Program Files/Apache24/logs/phpmyadmin.localhost-access.log" common | |
<Directory "C:/Users/Vahid Amiri Motlagh/Documents/dev/phpmyadmin"> | |
DirectoryIndex index.html index.php | |
Require all granted | |
AllowOverride All | |
</Directory> | |
</VirtualHost> | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment