Skip to content

Instantly share code, notes, and snippets.

@nwaweru
Forked from bvipul/virtualHost.conf
Created March 11, 2020 00: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 nwaweru/77e15d7bd04a88fdfb050eb9fb368058 to your computer and use it in GitHub Desktop.
Save nwaweru/77e15d7bd04a88fdfb050eb9fb368058 to your computer and use it in GitHub Desktop.
For Adding virtual hosts file for Laravel projects
<VirtualHost *:80>
ServerAdmin admin@server.in
ServerName server.in
ServerAlias server.in
<Directory /var/www/html/project/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
DocumentRoot /var/www/html/project/public/
ErrorLog /var/www/html/project/error.log
CustomLog /var/www/html/project/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment