0

Ubuntu マシンでディスパッチャを動作させることができません。Apache の再起動後に表示されるエラーは次のとおりです。

/etc/apache2/conf.d/dispatcher.any の 2 行目の構文エラー: 無効なコマンド '/farms' です。スペルが間違っているか、サーバー構成に含まれていないモジュールによって定義されている可能性があります アクション 'configtest' は失敗しました。

デフォルトの dispatcher.any ファイルを変更せずに使用しています。

以下のようにディスパッチャ モジュールを有効にしました。

LoadModule dispatcher_module /usr/lib/apache2/modules/dispatcher-apache2.2-4.1.4.so

<IfModule disp_apache2.c>
        # location of the configuration file. eg: 'conf/dispatcher.any'
        DispatcherConfig conf.d/dispatcher.any

        # location of the dispatcher log file. eg: 'logs/dispatcher.log'
        DispatcherLog    /var/log/apache2/dispatcher.log

        # log level for the dispatcher log
        # 0 Errors
        # 1 Warnings
        # 2 Infos
        # 3 Debug
        DispatcherLogLevel 3

        # if turned to 1, the dispatcher looks like a normal module
        DispatcherNoServerHeader 0

        # if turned to 1, request to / are not handled by the dispatcher
        # use the mod_alias then for the correct mapping
        DispatcherDeclineRoot 0

        # if turned to 1, the dispatcher uses the URL already processed
        # by handlers preceeding the dispatcher (i.e. mod_rewrite)
        # instead of the original one passed to the web server.
        DispatcherUseProcessedURL 0

        # if turned to 1, the dispatcher does not spool an error
        # response to the client (where the status code is greater
        # or equal than 400), but passes the status code to
        # Apache, which e.g. allows an ErrorDocument directive
        # to process such a status code.
        DispatcherPassError 0
</IfModule>

誰でも問題を解決するのを手伝ってもらえますか?

ありがとう、 -- パワン

4

1 に答える 1

2

出入りdispatcher.anyconf.d/conf/更新するDispatcherConfig

何が起こるかというと、apache が起動すると、ディレクトリを通過し、conf.d含まれているファイルを apache 構成ファイルとしてロードしようとします。このdispatcher.anyファイルは Apache 構成ファイルではないため、そのままではロードできません。これにより、ファイルの最初の非コメント行で構文エラーが発生します。

于 2013-05-22T18:44:24.400 に答える