2016-04-08 4 views
0

私はDigitalOneのDropletでホストされているUbuntu 14.04でLAMPスタックを使用しています。私のip 1XX.XX.XX.101はデフォルトのApache2ページにリダイレクトされますが、1XX.XX.XX.101/index.phpや1XX.XX.XX.101/any-uriは正常に動作します。 私のlaravelのバージョンは5.1です。どんな助け?Laravel 5.1 "/"ルートはデフォルトのApacheページにリダイレクトされます。 /index.phpと他のすべてのルートはうまく動作します

私はDirectory Indexを試しました。 これは1XX.XX.XX.101 //ダブルスラッシュまたは2以上のスラッシュの任意の数の作品は、インデックス 私の.htaccess

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

    RewriteEngine On 
<IfModule dir_module> 
    DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.htm$ 
       default.php default.pl default.cgi default.asp default.shtml def$ 
       default.htm home.php home.pl home.cgi home.asp home.shtml home.h$ 
</IfModule> 
    # Redirect Trailing Slashes... 
    RewriteRule ^(.*)/$ /$1 [L,R=301] 
    # Handle Front Controller... 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteRule^index.php [L] 
</IfModule> 

confファイル サーバー名104.131.48.27 にServerAlias 104.131をに行きます解決.48.27

DocumentRoot /var/www/project/public 
<Directory /var/www/project/public> 
    # Don't show directory index 
    Options -Indexes +FollowSymLinks +MultiViews 

    # Allow .htaccess files 
    AllowOverride All 

    # Allow web access to this directory 
    Require all granted 
</Directory> 

# Error and access logs 
ErrorLog ${APACHE_LOG_DIR}/raven.error.log 
# Possible values include: debug, info, notice, warn, error, crit, 
# alert, emerg. 
LogLevel warn 
CustomLog ${APACHE_LOG_DIR}/my-site.access.log combined 

+0

index.phpとは何ですか? –

+0

@SamSolomon:1XX.XX.XX.101/index.phpは問題ありません。 – Zurez

答えて

0

。問題はブラウザのキャッシュにありました。マシンを再起動すると問題が解決しました。

関連する問題