NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I'm trying to install the overpass api as a web server with apache but I cannot access the interpreter from an http request. Overpass API Install

Here is my 000-default.conf

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ExtFilterDefine gzip mode=output cmd=/bin/gzip
DocumentRoot /root/osm-3s_v0.7.4/html

# This directive indicates that whenever someone types http://www.mydomain.com/api/ 
# Apache2 should refer to what is in the local directory [YOUR_EXEC_DIR]/cgi-bin/
ScriptAlias /api/ /srv/osm3s/cgi-bin/

# This specifies some directives specific to the directory: [YOUR_EXEC_DIR]/cgi-bin/
<Directory "/srv/osm3s/cgi-bin/">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
            #SetOutputFilter gzip
            #Header set Content-Encoding gzip
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit, alert, emerg
LogLevel warn

CustomLog /var/log/apache2/access.log combined

However when I try to run the command:

http://175.33.148.57/api/interpreter?data=%3Cprint%20mode=%22body%22/%3E

I get the 403 Forbidden error.

I have already done

chmod 777 /srv/osm3s/cgi-bin/

But nothing seems to work.

Please help, Ive been stuck on this for 3 days now! Thanks in advance.

asked 27 May '14, 22:05

gmeister4's gravatar image

gmeister4
608812
accept rate: 0%

closed 24 Jul '15, 19:22

mmd's gravatar image

mmd
5.7k15388

Is there a solution for this? I've also found this post at stackoverflow but none of the answers fixed it for me.

(I'm using CentOS, Apache/2.2.15 and I tried all possible solutions from this answers including moving installation to /var/www/osm/)

(15 Jul '15, 11:52) PhilHamm
(24 Jul '15, 19:21) mmd

The question has been closed for the following reason "Issue is now handled on Overpass API development list." by mmd 24 Jul '15, 19:22


meanwhile we have a mailinglist for overpassAPI:

http://gis.19327.n5.nabble.com/Overpass-API-Development-f5839267.html

try to ask there.

permanent link

answered 18 Jul '15, 10:17

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×483
×293
×290
×20

question asked: 27 May '14, 22:05

question was seen: 5,865 times

last updated: 25 Jul '15, 10:17

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum