Amazon EC2 Laravel app not working

So, I was able to install the Laravel application on amazon ec2 and was able to ssh and upload my files properly. The problem occurs when I try to access links other than my "/" route (or the index home page). I thought that maybe my files are not loading properly, so I tried to check access to other routes with the standard Laravel database.

My routes:

Route::get('/', 'HomeController@showWelcome');

Route::get('/test', 'HomeController@testFunction');

My home controller:

    public function showWelcome()
    {
            return 'hello';
    }

    public function testFunction()
    {
            return 'test';
    }

ec2 dns: http://ec2-XX-XXX-XXX-XXX.us-west-2.compute.amazonaws.com, , , , "". , http://ec2-XX-XXX-XXX-XXX.us-west-2.compute.amazonaws.com/test, 404 NOT FOUND.

, - . , !

+3
2

/etc/apache 2/sites-available/000-default.conf

000-default.conf:

  AllowOverride All

root: 1. sudo a2enmod 2. apache2

+2

, ec2 - . . Route::get('test', 'HomeController@testFunction'); / , .


http://laravel.com/docs/controllers#restful-controllers

0

All Articles