Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rakibhasansabbir/a934aa845e44a6b42c92df39ef3bcb57 to your computer and use it in GitHub Desktop.
Save rakibhasansabbir/a934aa845e44a6b42c92df39ef3bcb57 to your computer and use it in GitHub Desktop.
Every time a new project arises, we have to set up the sites configuration, but this is not something we have to remember to do.
<VirtualHost *:80>
ServerName local.your_domain.test
ServerAdmin [email protected]
DocumentRoot /var/www/project_root_directory
<Directory /var/www/project_directory_name>
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment