laravel - 404 Error in larvel 5.1 Wamp -


i beginner in laravel. used laravel 5.1 in wamp server (apache/2.4.9 (win64) php/5.5.12)

i received 404 not found error, when called page

http://localhost/laravel/public/login

enter image description here

route::get('login', function() { //return view::make('login'); return 'hello world';  }); 

vhost.conf code

serveradmin local@gmail.com documentroot "c:\wamp\www\laravel\public" servername localhost errorlog "logs/authoritycontroller.www-error.log" customlog "logs/authoritycontroller.www-access.log" common      <directory "c:\wamp\www\laravel\public">      options indexes followsymlinks multiviews      allowoverride      order allow,deny      allow </directory> 

try this: http://localhost/login may helps you, hope :). , check vhost in appache set .../your_laravel_project/public folder

update go c:\windows\system32\drivers\etc\hosts , add line @ bottom:

127.0.0.1 myproject.dev 

then, in appache httpd.conf file shoud uncoment line:

# virtual hosts include conf/extra/httpd-vhosts.conf  

bonus: can switch directory projects in lines (for instance have projects in 'f:/code'):

documentroot "f:/code" <directory "f:/code">     options indexes followsymlinks includes execcgi     allowoverride     require granted </directory> 

next step, in httpd-vhosts.conf should have:

<virtualhost myproject.dev>      documentroot "f:\code\myproject\public"     servername myproject.dev     serveralias myproject.dev     <directory "f:\code\myproject\public">         options indexes followsymlinks includes execcgi         allowoverride         order allow,deny         allow    </directory> </virtualhost> 

then reset appache. , when go browser , put http://myproject.dev should see page :)


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -