Answer the question
In order to leave comments, you need to log in
How to set up a virtual host so that both localhost and site.local work?
Made myself a local domain...
In windows\win32\drivers\etc\hosts..
127.0.0.1 localhost
127.0.0.3 mylavasite.loc
127.0.0.2 custom-host
127.0.0.2 custom
In xampp\apache... uncommented:
NameVirtualHost * :80
DocumentRoot "C:\xampp\htdocs\laravel_my\public"
ServerName mylavasite.loc
Require all granted
what to do to make mylavasite.loc work and still be able to work
localhost/test-folder ...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question