vendredi 7 juin 2019

XAMPP - Unable access laravel project through subdomain localhost

I am using XAMPP to host the laravel project. I was able to access the project normally by running localhost/laravel-test/public in browser. The problem I faced is unable to access the project by using localhost subdomain.

It return me to https://test.laravel-test.com/dashboard/ enter image description here

I have add line below to window hosts file.

127.0.0.1 test.laravel-test.com

and the following to XAMPP apache httpd-vhosts.conf file.

<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs\laravel-test\public"
ServerName test.wallet.com
ServerAlias test.wallet.com
</VirtualHost>

FYI I have tried to create a new laravel project and it works fine with the subdomain which makes me figure something may have gone wrong in the project but I was unable to identify the problem.



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2QRSM17
via IFTTT

Aucun commentaire:

Enregistrer un commentaire