Once upon a time, I needed to use Laravel in a Windows machine that was running WAMP (http://www.wampserver.com/en). After figuring out how it is the structure of WAMP and where the configuration files are, I was able to run my Laravel project, in a subfolder.
The Apache of WAMP comes configured with the ‘Include “${INSTALL_DIR}/alias/*”‘ directive, and by that, it reads any .conf file inside ‘alias’ folder that’s on WAMP installation directory (C:\wamp\alias).
Create a file called laravel.conf inside the alias folder, with the following content:
1 2 3 4 5 6 7 8 |
Alias /your-project"c:/wamp/www/your-project/public" <Directory "c:/wamp/www/your-project/public"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory> |
Everything is ready! Restart Apache, and your Laravel will work on a subfolder of WAMP.