Skip to content

Instantly share code, notes, and snippets.

@lokingdav
Forked from bvipul/virtualHost.conf
Created December 24, 2020 13:20
Show Gist options
  • Select an option

  • Save lokingdav/4d5229d03e16ee54b5fb772d7d93dd9a to your computer and use it in GitHub Desktop.

Select an option

Save lokingdav/4d5229d03e16ee54b5fb772d7d93dd9a to your computer and use it in GitHub Desktop.
For Adding virtual hosts file for Laravel projects
<VirtualHost *:80>
ServerAdmin [email protected]
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