leokhoa / laragon

Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.
https://laragon.org
4.4k stars 368 forks source link

Not possible to set individual document roots #159

Open codestylist opened 4 years ago

codestylist commented 4 years ago

When I use Laragon with vhosts it is not possible to set the document root individually. It always points to c:/www/domain. It would be helpful if it is possible to set up an individual document root for each vhost while the vhost is being created.

codestylist commented 4 years ago

@leokhoa Would it be possible for you having a look into this issue/request?

leokhoa commented 4 years ago

@codestylist : You can do that by just remove the auto. prefix in auto virtual host filename and change the document root inside the file.

ugintl commented 1 week ago

@leokhoa @codestylist it worked. Go to laragon\etc\apache2\sites-enabled and remove auto. prefix. Now open the file in a code editor and adjust the "Document Root" path. Reload Apache.