试图运行 Nominatim 似乎是不可能的。我遵循了Nominatim 安装的说明,在尝试访问 url http://nominatim.mytest.com/之后, nginx 说:
127.0.0.1 - - [17/Apr/2015:19:15:36 +0200] "GET / HTTP/1.1" 200 31 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0"
没有一点输出。如果我从控制台 php5 index.php 运行,那里有一个 html 输出。
nginx 的配置是(/etc/nginx/sites-enabled/nominatim.mytest.com):
server {
root /var/www/nominatim.mytest.com;
index index.html index.htm index.php;
server_name nominatim.mytest.com;
location ~ [^/]\.php(/|$){
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
主机文件:
127.0.0.1 nominatim.mytest.com
机器是:
Ubuntu 14.10
postgis 2.1.3+dfsg-4ubuntu0.1
postgresql-9.4
php5 5.5.12+dfsg-2ubuntu4.3