Created
February 4, 2019 13:02
-
-
Save himanshu8dev/b858283c8df2903a5635c66e28a8fd11 to your computer and use it in GitHub Desktop.
Dynamic Apache Virtual Host
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
| # Local Development | |
| <VirtualHost *:8080> | |
| ServerName dev.local | |
| ServerAlias *.dev.local | |
| DocumentRoot "/var/html/www/dev/" | |
| ServerAdmin webmaster@dev.local | |
| ErrorLog "logs/dev-local-error.log" | |
| CustomLog "logs/dev-local-access.log" common | |
| SetEnvIf Host ^([^.]+)?\.dev\.local SUBDOMAIN_DIR=$1 | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment