
私はNominatimサーバーをインストールしましたこの素晴らしいウォークスルーただし、Apache の設定を機能させることができません。
私の default-conf は次のように指定されています:
ServerName maps.example.org
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory "/var/www/html/nominatim">
Options FollowSymLinks MultiViews
AddType text/html .php
</Directory>
Nominatim では、BaseUrl を次のように指定します。
@define('CONST_Website_ @define('CONST_Website_BaseURL', '$IP/html/nominatim/')
次の方法でサーバーをセットアップします:
./utils/setup.php --create-website /var/www/html/nominatim
Symlinks created
戻り値
WARNING: Unable to access the website at 46.101.185.214/html/nominatim/
You may want to update settings/local.php with @define('CONST_Website_BaseURL', 'http://[HOST]/[PATH]/');
Setup finished.
ただし、サーバーはアクセス可能ですhttp://$IP/html/nominatim/index.phpしかし、見た目は少しぎこちないです。
検索を実行すると、次の結果が返されます。
Not Found 404
問題は Apache の設定にあると思いますが、動作するコンステレーションを見つけることができません。ヒントとしては、「検索」をクリックした後の URL が考えられます。
http://$IP/html/nominatim/$IP/html/nominatim/$IP/html/nominatim/search.php?q=test&viewbox=
したがって、私の質問は次のとおりです。これを機能させるには、構成ファイルで何を変更する必要がありますか?
どうもありがとうございます!
答え1
指摘されているようにギットハブ答えは実に簡単です。
http://
ノミナティムの定義には が抜けていました。正しくは、次のようになります。
@define('CONST_Website_ @define('CONST_Website_BaseURL', 'http://$IP/html/nominatim/')