Skip to content

ThaungPyaePhyo/virtual-host-in-local-server-laravel-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Follow these steps:

  1. first

    /etc/hosts -> add new -> 127.0.0.1 yourdomain.local

  2. /etc/apache2/site-available/ 000-default conf  copy to yourdomain.local.conf	
     	<VirtualHost *:80>
     		  ServerName yourdomain.local
     		  DocumentRoot /path/to/your/laravel/project/public
     		 <Directory /path/to/your/laravel/project/public>
     		 Options Indexes FollowSymLinks
     		  AllowOverride All
     		 Require all granted
     		</Directory>
     	</VirtualHost>
  3. sudo a2ensite yourdomain.local.conf
  4. sudo a2enmod rewrite
  5. sudo systemctl restart apache2
  6. APP_URL=http://yourdomain.local
  7. php artisan config:clear

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published