Skip to content

Instantly share code, notes, and snippets.

@bvipul
Last active December 24, 2020 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save bvipul/d289a17d346a2352474d19748eee0b9a to your computer and use it in GitHub Desktop.
Save bvipul/d289a17d346a2352474d19748eee0b9a 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>
@bvipul
Copy link
Author

bvipul commented Nov 17, 2017

For Adding virtual host in Xampp in windows, refer this article: https://www.cloudways.com/blog/configure-virtual-host-on-windows-10-for-wordpress/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment