2016-04-14 17 views
0

我有laravel 5在aws2上运行ubuntu。网站和路线没有http。laravel 5 https对于任何路由总是404

当遇到例如https://example.com,只有主页有效。其他页面返回404.例如, https://example.com/home返回404

的.htaccess

<IfModule mod_rewrite.c> 
    <IfModule mod_negotiation.c> 
     Options -MultiViews 
    </IfModule> 

    RewriteEngine On 

    # Redirect Trailing Slashes If Not A Folder... 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)/$ /$1 [L,R=301] 

    # Handle Front Controller... 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteRule^index.php [L] 

    # Handle Authorization Header 
    RewriteCond %{HTTP:Authorization} . 
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 
</IfModule> 

000-default.conf enter image description here

的ssl.conf中 enter image description here

的服务器名没有在那里为AWS工作。

回答