[Taginfo-dev] Errors starting taginfo webserver on Ubuntu 14.04
Yogesh
yogesh at kalike.org
Sat May 16 22:59:25 UTC 2015
On Saturday 16 May 2015 01:43 PM, Stephan Knauss wrote:
> Sounds very similar to my problem. Please check which version of rack
> you are using. Maybe you have to downgrade.
>
Yeah, downgrading to versions suggested by Imre did the trick.! Now I'm
able to run the taginfo instance in debugging mode on port 4567.
But running it under Passenger having some issues. Although the
permissions and apache config looks fine, it shows up 403 Forbidden
Error page. And the apache error.log has this message - "AH01630: client
denied by server configuration: /osm/taginfo/web/public/".
The taginfo.conf file at /etc/apache2/sites-available/ has the following
content -
<VirtualHost *:80>
# ServerName taginfo.openstreetmap.xx
DocumentRoot /osm/taginfo/web/public
<Directory /osm/taginfo/web/public>
Allow from all
Options -MultiViews
# Uncomment this if you're on Apache >= 2.4:
Require all granted
</Directory>
</VirtualHost>
Tried adding "Options FollowSymLinksAllowOverride None" to above but
didn't work.
And the contents of *config.ru* in the web directory is like as
specified in the wiki -
Encoding.default_external = 'UTF-8'
require 'rubygems'
require 'sinatra'
require './taginfo.rb'
require 'json'
require 'lib/config.rb'
TaginfoConfig.read
LOGDIR=TaginfoConfig.get('logging.directory', '/osm/taginfo/var/log');
set :run, false
set :environment, :production
today = Time.now.strftime('%Y-%m-%d')
log = File.new("#{LOGDIR}/taginfo-#{ today }.log", "a")
log.sync = true
# https://github.com/joto/taginfo/issues/34
#$stdout.reopen(log)
$stderr.reopen(log)
$stderr.puts "Taginfo started #{Time.now}"
$queries_log = File.new("#{LOGDIR}/queries-#{ today }.log", "a")
$queries_log.sync = true
run Taginfo
Not getting where things are going wrong with Passenger in Apache.
thanks,
yogi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/taginfo-dev/attachments/20150517/aedd1374/attachment.html>
More information about the Taginfo-dev
mailing list