Skip to content

Instantly share code, notes, and snippets.

@pritdeveloper
Last active January 1, 2025 19:41
Show Gist options
  • Save pritdeveloper/549542016e7f57c8c295e068b99c5e1e to your computer and use it in GitHub Desktop.
Save pritdeveloper/549542016e7f57c8c295e068b99c5e1e to your computer and use it in GitHub Desktop.
Linux host file
<VirtualHost *:80>
ServerName local
DocumentRoot /var/www/vhosts/
# Only log error and not warnings or other notices
# change to info to log everything
LogLevel error
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/vhosts>
Options Indexes FollowSymLinks
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