0

ubuntu OS の localhost で zend プロジェクトを作成しましたが、ローカル システムで完全に動作しています。今、このプロジェクトをオンラインにアップロードしたいと思います。ドメイン名とホスティングを購入しました。ファイルをアップロードするためのディレクトリ構造は次のとおりです。

/www.example.com/web/content/

したがって、www.example.comはフォルダーを指してい/www.example.com/web/content/ます。このディレクトリ構造は変更できません。すべてのパブリックフォルダー ファイルを/www.example.com/web/content/applicationlibrary、およびtestsフォルダーに配置し/www.example.com/web/ます。したがって、ローカル システムと同じディレクトリですが、パブリック フォルダーのみがコンテンツ フォルダーに名前が変更されます。

ホームページが正常に表示されるようになりましたが、リンクをクリックしたり、他の Web ページにリダイレクトしたりするたびに、次のエラーが発生します。

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2 Server at example.com Port 80

何か案が ?

ありがとう

4

2 に答える 2

1

内部サーバー (HTTP 500) エラーは、さまざまな理由で発生する可能性があります。詳細については、Web サーバーのエラー ログを確認してください。仮想ホストのエラー ログにアクセスできない場合は、ホストに問題の原因を確認してください。

于 2011-12-09T14:11:31.450 に答える
0

次のスレッドを読むと解決します。

http://www.zfforums.com/zend-framework-general-discussions-1/installation-configuration-3/problems-1and1-hosting-560.html

したがって、次の.htaccessを使用して動作しています:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
于 2011-12-10T15:30:20.970 に答える