I have set up a webpage that calls wms from geoserver operating on localhost and using openlayers as a front end. Everything works perfectly well. The next step, however, causes a few issues. My website is hosted on an external server by another company. Therefore, when i upload the webpage it will not work, is there a way to solve this issue? I only have access to the website through the ftp
cheers
You should contact your service provider and ask about running GeoServer on the public webserver. If you can't run GeoServer in an Internet-accessible place, then your options are severely limited. Depending on how complicated/large your data is, you could consider generating a GeoJSON dump of your data set and using OpenLayers' vector styling to perform the rendering client-side. You could generate GeoJSON from GeoServer on your local machine and then upload it as a static file to your hosting provider. OpenLayers would allow you to overlay this data on a publicly available tileset like Google Maps or OpenStreetMap.
Related
I have noticed in many websites they have both web and mobile version separatly with the same domain name but with different subdomains. For example, web.websitename.com and mobile.websitename.com. I am aware of using media queries in css for showing different ui with the help of css, but how its made on the url. How does the browser finds what type of device it is, like mobile or desktop. If anyone knows please help me.
Currently I'm building a local serach engine for network drives that is going to be used in our company.
The search engine is build on top of Solr and Tika. I've build an indexer that indexes Samba-shares over the network which works great and indexes all the directories that are given in a configuration file. However that is not really relevant.
The current problem we have is that the web interface that connects to Solr and delivers the search results will try to serve local file:// files that are links to the files with a absolute or Samba path. But serving file://'s are of course disallowed by browsers like Google Chrome. The error that Chrome gives is:
Not allowed to load local resource: file:///name/to/file.pdf
Which is obvious and logical, however I want to work around that issue and serve 'local' files to our users. Or at least open an Explorer window with the given path.
I was wondering if this is even possible or if there is a workaround available? The server that is going to serve these files is running on Apache or Tomcat (doesn't matter).
Alhtough opening file://'s seems pretty much impossible without the use of browser-specific plugins, I created a workaround by specifying a custom URI-handler combined with a Windows specific application that will open explorer.exe with the given directory.
This is by far not the ideal answer to my question, but I think it is a decent workaround for an intranet search application.
Streaming the file from your application to the browser is a much better idea from a usability and security perspective.
By assigning a MIME type to the stream, the user's browser can decide how best to open and display the file to the user.
By streaming from you application, control of the data can be maintained. The location of the file on you server is not revealed and proper authentication, authorization and auditing are easily achieved.
Assuming Java based upon your use of Solr and Tika:
http://www.java-forums.org/blogs/servlet/668-how-write-servlet-sends-file-user-download.html
I am launching a new redesigned website on windows hosting. I am wondering what is the best way to launch this new website without having any downtime on the existing one?
MY only fear is having a user go to visit a page and it's not there or the supporting files are not uploaded yet.
One of the simplest ways to handle this is to put a load balancer or proxy server in front of the application server. Then set up another application server with the new code. Once it is ready, you can change the proxy server to point to the new application server with the new code. Once you are sure nobody is using the old application server, you can shut it down. This, of course, relies on your ability to get that setup in place. If you are on a budget, you might be able to do it all on a single box. For instance, you could use nginx as a reverse proxy to your application on the same box. Getting that in place could potentially cause a tiny window of downtime - not sure if that's acceptable. Then you might be able to set up the new application on the same box with a different port - again, I'm not sure if that would work for your setup. Anyway, the reverse proxy approach is a pretty common one, and one of the great reasons for deploying to the cloud. You only pay for the short period of time when you need both boxes.
You should make sure that your new website launches all at once and that you set up the proper redirection rules for all previous pages. Once you are launching the new website, pick a time at night where you have low traffic volume, and simply upload all the new code at once to the webserver. This eliminates the fear you have of the "supporting files not uploaded yet". One of the key things to do is make sure all your old pages redirect and map over to new pages on the site just in case anyone clicks into your site using external links.
Two good resources to read:
http://www.rise.net/blog/ideal-way-launch-website-rebrand
http://googlewebmastercentral.blogspot.com/2008/04/best-practices-when-moving-your-site.html
The best methos is to upload the site via FTP, and if you have RD access to login into the Windows server and to copy the new site for a few seconds. In this way you will not have any downtime as when you directly upload the site via FTP.
For some time, I can't use jQuery from Google's CDN. For example the StackOverflow website won't work on my PC. Either the Google or my network has blocked it. I'm looking for a way to serve the .js file from a local copy (or from Microsoft's CDN) whenever the browser sees that URL. (Kind of like a proxy). I'm using Google Chrome as my primary browser but any other browser will do.
I ended up using Fiddler2's Autoresponder feature. Just added a simple regex and asked it to serve my local copy of jQuery.
I want to create GIS Server on my local server (Web Based). What Engine will I use? But in my network no Internet access. So I have a lot of mif file. And I want to display on my browser. How could it be?
MapServer is the most supported open source web mapping server.
http://www.mapserver.org/
It supports both PHP and MapInfo files.