How to run multiple instances of Laravel on the same domain?
Try This one, in your Apache configure file /etc/apache2/sites-available
<VirtualHost *:8080> ServerName serv1.example.com ServerAlias serv1.example.com DocumentRoot "C:/www/dev/public" # Rewrites for pretty URLs, better not to rely on .htaccess. <Directory "C:/www/dev/public"> Options All AllowOverride All Require all granted <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule> </Directory># Log file locationsLogLevel warnErrorLog "logs/dev-error.log"CustomLog "logs/dev-access.log" common
And in your c:\www\dev\public\.htaccess
<IfModule mod_rewrite.c><IfModule mod_negotiation.c> Options -MultiViews</IfModule>RewriteEngine On# Redirect Trailing Slashes...RewriteRule ^(.*)/$ /$1 [L,R=301]# Handle Front Controller...RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^ index.php [L]
I hope this would work. for more information follow these links.Multiple laravelsites on single apache server , multiple web sites in single laravel installation