0

I created a laravel app named lsapp , I can access laravel landing page http://localhost/lsapp/public/ .

To hide public folder, I decided to route through lsapp.dev/. But when I try to load in chrome , it shows privacy error.

Following changes were made,

in system32/drivers/hosts

127.0.0.1 localhost
127.0.0.1 lsapp.dev

in httpd.vhosts.conf

<VirtualHost *:80>
    DocumentRoot "E:/programs/php/htdocs"
    ServerName localhost
   
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "E:/programs/php/htdocs/htdocs/public"
    ServerName lsapp.dev

</VirtualHost>

error

Anoop K George
  • 1,605
  • 12
  • 40
  • 1
    Seems like chrome is just blocking not secured domain. Try this fix: https://stackoverflow.com/questions/35531347/localhost-blocked-on-chrome-with-privacy-error – StewieSWS Jan 20 '23 at 16:13
  • 1
    `E:/programs/php/htdocs/htdocs/public` ?? Two `htdocs`? Also, don't use your localhost's DocumentRoot for other projects. Use something like `E:/programs/php/lsapp/public` – brombeer Jan 20 '23 at 16:13
  • A simpler solution is to use the domain `lsapp.test` – N69S Jan 20 '23 at 16:30

0 Answers0