- Add a sub folder in laragon root.
- Rewrite .conf in D:\laragon\etc\apache2\sites-enabled
Change DocumentRoot and Directory - Reload Apache
Example:
1 2 3 4 5 6 7 8 9 10 11 |
<VirtualHost *:80> DocumentRoot "D:/www/2019/pp/public/" ServerName topeak.test ServerAlias *.topeak.test <Directory "D:/www/2019/pp/public/"> AllowOverride All Require all granted </Directory> </VirtualHost> # If you want to use SSL, enable it by going to Menu > Apache > SSL > Enabled |
Reference