Skip to content

Instantly share code, notes, and snippets.

@vsg24
Last active April 27, 2020 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vsg24/ae9256047013b8016b9bd41ceebfe90f to your computer and use it in GitHub Desktop.
Save vsg24/ae9256047013b8016b9bd41ceebfe90f to your computer and use it in GitHub Desktop.
Apache 2.4 PHP virtualhost example
```
<VirtualHost *:80>
AddHandler application/x-httpd-php .php
ServerAdmin webmaster@dummy-host.example.com
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