0

Raspberry Pi に LAMP をインストールし、ZF2 プロジェクトを /srv/www/ にアップロードしました。残念ながら、ブラウザから Web サイトを起動しようとすると、内部サーバー エラーが発生します。

内部サーバーエラー

サーバーで内部エラーまたは構成ミスが発生したため、リクエストを完了できませんでした。

サーバー管理者の dan@danprotti.com に連絡して、エラーが発生した時刻と、エラーの原因となった可能性のある操作を知らせてください。

このエラーの詳細については、サーバー エラー ログを参照してください。192.168.2.102 ポート 80 の Apache/2.2.22 (Debian) サーバー

Web サイト (イントラネット/LAN で実行する必要があります) は raspberrypi.goldfinger.com で、/ect/apache2/sites-available に次の構成ファイルがあります -> raspberrypi.goldfinger.com =>

<VirtualHost *:80>
ServerAdmin admin@mysite.com
ServerName raspberrypi.goldfinger.com
ServerAlias www.raspberrypi.goldfinger.com
DocumentRoot /srv/www/raspberrypi.goldfinger.com/goldfinger/public/
<Directory "/srv/www/raspberrypi.goldfinger.com/goldfinger/public">
DirectoryIndex index.php
AllowOverride all
AllowOverride Options
Options None
Order allow,deny
Allow from all
</Directory>
ErrorLog /srv/www/raspberrypi.goldfinger.com/goldfinger/public/log/error.log
CustomLog /srv/www/raspberrypi.goldfinger.com/goldfinger/public/access.log combined
</VirtualHost>

.htaccess ファイルは ZF2 からのもので、次のとおりです。

RewriteEngine On
# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# The following rewrites all other queries to index.php. The 
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting, the base path will be prepended to 
# allow proper resolution of the index.php file; it will work
# in non-aliased environments as well, providing a safe, one-size 
# fits all solution.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]

私は何を間違っていますか?

前もって感謝します

4

0 に答える 0