0

I have been trying to create a web map using PostgreSQL/PostGIS - GeoServer - OpenLayers. However, the resulting map is on my localhost and the data published in GeoServer can be accessed solely through my own PC. Also, the link to my shapefiles/rasters possess the prefix of localhost:8081 (in the javascript code of the .html I have built).

How can I publish the web map I have created, on my own website so that everyone can visit the website and scroll around the map?

  • is your web site public? what web server are you using? – nmtoken Jun 16 '20 at 8:14
  • Yes, the website is public. I am a beginner in this field (especially web designing); therefore, I am not familiar with web servers and their relationships with Web GIS, however, I just know that the website that I would like to publish my web map on is based on LiteSpeed. Also, I can have access to another website created on the basis of Apache. – Ali Mokhtari Jun 16 '20 at 9:38
  • 2
    The classic way is to proxy your GeoServer (Tomcat/Jetty) server through a web server, such as Apache, then have your openlayers js + HTML as a web page, available through the same web server. You'd need to change the localhost:8081 to be the proxied geoserver address. – nmtoken Jun 16 '20 at 20:47
  • Thanks. The GeoServer can be proxied using the OGC Services, am I right? – Ali Mokhtari Jun 17 '20 at 2:54
  • 1
    No. geoserver provides the OGC services. The geoserver service is proxied through your webserver – nmtoken Jun 17 '20 at 6:52
0

Well, it seems you are done with development. Now it's time to take a step forward towards deploying on the server. Then, if you are using a VPS, you need to install GeoServer on your server, so that it can be accessed through WWW.

Note: OGC (Open Geospatial Consortium) is an organization that just regulates the standards and specifications for geospatial services, such as WMS, WFS, etc. GeoServer is a software that enables you to easily utilize geospatial services within your apps. So, WMS, WFS, WCS, etc., have nothing to do with the way your proxy server works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.