Hot answers tagged apache
9
you can find very detailed information about Jetty and Apache httpd (from http://wiki.eclipse.org/). i think you should decide what you want from a web server more precisely according to the expectations.
Apache httpd is a HTTP server written in C, that is often used to
front other web services. Jetty is a full functional and optimized
HTTP server ...
7
As tile caches are pregenerated map images, you will really be testing the underlying map / wms / image server. Unless you are testing against a pregenarated cache, in which case you are testing the web server itself (Apache / IIS etc.).
Stress testing for websites is often done using JMeter. There was a recent series of posts on using JMeter at ...
7
GeoServer is a Java web application packaged as a WAR file. It needs to be deployed in a Java servlet container of which Apache Tomcat is an implementation. You could also use another servlet engine like Jetty. So in order to use GeoServer, you will be obliged to use a Java servlet container.
If you want to avoid the use of a servlet engine, you could also ...
6
I wrote up my notes on how to do this on a Linux box (but the process is similar on a windows machine). Specifically you need to have Apache redirect the requests to the tomcat at localhost:8080 - you need to edit a couple of files.
5
to avoid the cross origin policy that prevents evil sites from stealing your credit card details by accident. See http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost for more details.
5
I have found for windows users using the Enterprise Postgres Installers with
StackBuilder the easiest way to get up and running from a clean install (no previous versions of database etc.)
The PostgreSQL installers include the database server, pgAdmin and StackBuilder.
Notes:
**Internet Connection is required during the install as downloads items based on ...
4
I have faced the same problem: "Internal Server Error with Ubuntu 12.04".
Everything looked OK to me (I even run successfully a perl fcgi script to test FCGI in my apache server). I continually got an Internal Server Error when I run a get Capabilities request. The apache log file said "Premature end of script headers: qgis_mapserv.fcgi".
The problem was ...
3
Due to Javascript security rules, you are not allowed to make an XMLHttpRequest to another server. Even two servers running on the same machine, but different ports have this limitation.
What you need to do, is to have a cgi proxy on your tomcat webserver, and use the OpenLayers.ProxyHost to point to it.
The OpenLayers site has a FAQ Answer for this issue ...
3
Well for the connection between mapserver and postgis you should check mapserver documentation at http://mapserver.org/input/vector/postgis.html
That's for the data connection, then you have to style your data (MapServer docs are great) and then decide which client to use.
You are asking for tiled pngs so I assume you are looking for a web mapping client. ...
2
You need to edit server.xml file.
Open up the Server.xml file and search for Connector.
The top Connector will have the port that you're trying to communicate through, in my case 8080. In between port="8080" maxHttpHeaderSize="8192" type address="0.0.0.0" (Line will look like port="8080" address="0.0.0.0" maxHttpHeaderSize="8192").
Cheers!
2
The mapserver documentation has an example on using mapserver in tile mode here.
For the styling this is a basic example of a class and style for LINE layer type:
CLASS
NAME 'BLUELINES'
STYLE
WIDTH 7.0
COLOR 0 0 255
END
END
which renders lines in blue with a width of 7 SIZEUNITS. Sizeunits are defined at layer level and default to ...
2
If you're using Ubuntu, you'll first have to configure Apache
$sudo ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/proxy.conf
$sudo ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/proxy.load
$sudo ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/proxy_http.load
Then append the ...
2
The front end would be OpenLayers. The database would ideally be PostGIS but you could manage with MySQL I guess. You might want Geoserver in there too. For background data use OpenStreetMap.
http://www.osgeo.org for all things open source geo.
2
In this case it is because your sample proxy script from Open Layers is written in Python. Changing the header line just changes the language that your cgi file tells the server that it's in. You either need to modify your apache server to run Python (see here for one method) or alternately download a Perl proxy and modify it for your purposes, for example ...
2
For Ubuntu
sudo apt_get install postgresql postgis postgresql-9.1-postgis
sudo -i -u postgres
createdb postgis
psql -d postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
psql -d postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql
psql -d postgis -f /usr/share/postgresql/9.1/contrib/postgis_comments.sql
1
The easiest way (at least in Windows):
You can use, use EnterpriseDB installer (windows & linux), once you had installed PostgreSQL, use "StackBuilder" utility to install PostGIS optional library (PostGIS recommends this method in his web site)
Then you need to install pgAdminIII to connect to PostgreSQL.
1
I assume that your Apache is on port 80 and your Geoserver is on the same machine on port 8080.
I would suggest that you set up a reverse proxy on your Apache server. On my server I have set up Apache to resolve http://example.com/geoserver to http://example.com:8080/
That way I can just use the wms link as http://example.com/geoserver/wms & I don't ...
1
solved the problem using proxy.php.
I got the file from the last Mapbuilder app, and its just copy the
proxy.php file in my /var/www/ directory.
In openlayers edit/add the line
OpenLayers.ProxyHost = "/proxy.php?url="
http://lists.osgeo.org/pipermail/openlayers-users/2011-March/019840.html
response to comment:
To setup the proxy see Geoserver ...
1
In addition to said by iant, I have managed to make my layers publicly available by going to 'Global Settings' in GeoServer's administration interface and setting the 'Proxy Base URL'.
1
Installing the stack is not that difficult. I'm a noob and have done it. In Windows it's trivial. Install postgresql with "stackbuilder" PostgreSQL Windows stack installer. It will ask about installing a PostGIS instance or allow you to do so. Install PGAdminIII, you can connect QGIS to it as well, load data, and you're off to the races.
The problem is the ...
1
You do not need to configure proxypass and proxypassreverse.
You will need a proxy.cgi file written in python, and python installed on your server. you can get the proxy file with the openlayers distribution in the example folder. you will have to configure the path to python interpreter in the 1st line, and add your host to list of allowed hosts.
1
Sometimes I'm having such problems to setup proxy.cgi to another computers. if finding out why really make you tired, i want to advice you to use proxy.php.
you can get it from here. it works similar to proxy.cgi
i hope it helps you...
1
a few hours later I found my problem. I discovered apache logs at /var/log/apache2/error.log. An error read "(2)No such file or directory: apache2: could not open error log file /etc/apache2/${APACHE_LOG_DIR}/qgis-web-client-error.log. Unable to open logs". So I searched my qgis-web-client.conf for this line and found it and added the directory to the apache ...
1
Ahhh - Sorry I may not have added all the necessary information in my original question. But here are the details of what worked for me.
I was using a httpProxy in QGIS. In the section "Exclude URLs (starting with)" I added the server name I was trying to access and that solved the access issue.
@dakcarto, I appreciate the speedy assistance you were able ...
1
as @unicoletti says it is almost certainly not JAI as if it was the layer preview wouldn't work. More likely problems are javascript errors or the browser not being able to see the OpenLayers library.
The easiest way to see what's up is to add firebug to firefox and look at the console to see what the error is.
1
I am quite sure the problem is not with the JAI libraries because the layer preview in Geoserver works.
Try this: open to the layer preview and look at the source code. The preview uses exactly what you are using in the page you posted above. There you'll find all your answers (in the source code , I mean).
Happy learning.
P.S.: change the question title, ...
1
At a quick glance I'd imagine the issue is around the lines below:
181 var protocol = record.get("layer").protocol;
182 this.attributeStore = new GeoExt.data.AttributeStore({
183 url: Ext.urlAppend(protocol.url, Ext.urlEncode({
184 "VERSION": protocol.version,
185 "REQUEST": "DescribeFeatureType",
...
Only top voted, non community-wiki answers of a minimum length are eligible



