[OpenLayers-Users] Exception Error
R. Ortner
reinhard.ortner at edu.fh-kaernten.ac.at
Tue Dec 4 03:05:05 EST 2007
hi, when i type python i get:
Python 2.4.3 (#1, Jul 26 2006, 20:13:39)
[GCC 3.4.6] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
so i guess it is installed, but when i try to call the
http://172.xx.xx.xx/cgi-bin/proxy.cgi i get an 500 Internal server error.
do i have to change someting in the cgi script (first line is:
#!/usr/bin/env python)
how i can find out where python is installed?
when i trie to call http://172.xx.xx.xx/cgi-bin/ I get a forbidden (You
don't have permission to access /cgi-bin/ on this server.). but the cgi-bin
is set to chmod 755 and all files within.
really have no clue why I can´t reach the cgi-bin from the browser?
Bart van den Eijnden (OSGIS)-2 wrote:
>
> Did you check if Python is available on your server machine? Just try
> python in a shell.
>
> Is your server able to connect to remote services? Does it need proxy
> settings etc. to connect to outside services? Did you check your Apache
> error log?
>
> For your javascript you should use:
>
> OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url="
>
> Best regards,
> Bart
>
> R. Ortner schreef:
>> ok,
>> i put > OpenLayers.ProxyHost =
>> "/cgi-bin/proxy.cgi?url=http://172.xx.xx.xx/cgi-bin/proxy.cgi"; < into my
>> script. This maybe works but i get again (now within my application the
>> internal server error "unhandled request return server error").
>>
>> could there be a problem with the accessibility of the cgi-bin directory?
>> it
>> is set to chmod 755
>> (i get the same internal server error when i call the proxy.cgi directly
>> in
>> the browser?)
>>
>>
>>
>> Bart van den Eijnden (OSGIS)-2 wrote:
>>
>>> You need to define OpenLayers.ProxyHost in your javascript code, not in
>>> your Apache config file.
>>>
>>> Best regards,
>>> Bart
>>>
>>> R. Ortner schreef:
>>>
>>>> need some configuration help please!
>>>>
>>>> i copied the proxy.cgi in my cgi-bin dir. and put the
>>>>
>>>> < OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url="; >
>>>>
>>>> into my httpd.conf from my appache webserver.
>>>> (the url= is the url which i like to call with my applicatoin (e.g.
>>>> http://gis.at/com.esri.wms.Esrimap/geoland2), i guess or the url to the
>>>> proxy.cgi? (e.g. http://172.xx.xx.xx/cgi-bin/proxy.cgi))
>>>>
>>>> when i now restart the appache webserver i get the following message:
>>>> Invalid command 'OpenLayers.ProxyHost', perhaps mis-spelled or
>>>> defined
>>>> by a module not included in the server configuration
>>>>
>>>> when i trie to call the proxy.cgi with
>>>> http://172.xx.xx.xx/cgi-bin/proxy.cgi:
>>>>
>>>> Internal Server Error
>>>>
>>>> The server encountered an internal error or misconfiguration and
>>>> was
>>>> unable to complete your request.
>>>>
>>>> Please contact the server administrator, [no address given] and
>>>> inform them of the time the error
>>>> occurred, and anything you might have done that may have caused
>>>> the
>>>> error.
>>>>
>>>> More information about this error may be available in the server
>>>> error
>>>> log.
>>>>
>>>>
>>>> Christopher Schmidt-4 wrote:
>>>>
>>>>
>>>>> On Mon, Dec 03, 2007 at 04:31:59AM -0800, R. Ortner wrote:
>>>>>
>>>>>
>>>>>> Any idea whats wrong?
>>>>>>
>>>>>>
>>>>> http://en.wikipedia.org/wiki/Same_origin_policy
>>>>>
>>>>> http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost
>>>>>
>>>>> Regards,
>>>>> --
>>>>> Christopher Schmidt
>>>>> MetaCarta
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at openlayers.org
>>>>> http://openlayers.org/mailman/listinfo/users
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>> --
>>> Bart van den Eijnden
>>> OSGIS, Open Source GIS
>>> bartvde at osgis.nl
>>> http://www.osgis.nl
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>>
>>>
>>
>>
>
>
> --
> Bart van den Eijnden
> OSGIS, Open Source GIS
> bartvde at osgis.nl
> http://www.osgis.nl
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://www.nabble.com/Exception-Error-tf4936210.html#a14146316
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list