Open lars-29palms opened 5 years ago
Hi!
I faced with the same problem.
But the solution was to comment the
ServerAlias *.${SITE}
for the main domain in auto.domain.com.test.conf
! you will have to remove auto.
prefix from this conf
file so the Laragon do not overwrite your changes, or you can edit the {LARAGON_ROOT}\usr\tpl\VirtualHost.tpl
template file to apply it for all domains automatically.
i removed auto prefix but it doesn't gave any changes.
Anyone solve this? even if i remove the quotes or comment the line, when try to load nothing change and if i reload laragon restore the files... :(
I have found this answer useful
Hi there and first of all a big thank you for this amazing software!
I had some nasty problems setting up virtual hosts properly and after reading everything there was to find about this issue, I finally found the solution.
Precondition: Create folders for a domain and a subdomain in "www" directory. For example: "domain.com" "sub.domain.com"
Expected behaviour: http://sub.domain.com.test points to the correct directory.
Behaviour: http://sub.domain.com.test points to the directory of domain.com.
Solution: The auto.sub.domain.com.test.conf file in Apache > sites-enabled looks like this:
Removing the quotes in the solves the issue after reloading Apache.
Before:
<Directory "${ROOT}">
After:
<Directory ${ROOT}>