Skip to content
Advertisement

Problems in installing Laravel at localhost

I am trying to install PHP-Laravel in Windows 8 and I am using Xamp server(localhost). I am following Installing Laravel guide. According to this guide I am making virtual host using following code :

<VirtualHost *:80>
 DocumentRoot "C:/xampp/htdocs/TssApp/public"
 ServerName TssApp
  <Directory "C:/xampp/htdocs/TssApp/public">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
   </Directory>
</VirtualHost> 

//Where "C:/xampp/htdocs/TssApp/public" is path of Laravel public folder

and I have also added following line in in etc/hosts

  127.0.0.2             TssApp 

After doing necessary steps mentioned in this tutorial when I type “http://TssApp” , it always redirect to “http://tssapp/xampp/” instead of Laravel Home page. I don’t know if I am missing any thing.

Note: I can access laravel home page at “http://localhost/tssapp/public/” but want to use “http://TssApp” link to access my application.

Please help me regarding this issue. Thanks .

Advertisement

Answer

Do you have NameVirtualHost * in your virtual-hosts configuration?

You’ll need to restart Apache after any changes to either /etc/hosts or your virtual-hosts configuration files

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement