I’m looking to run Apache as a cache server for static images. If requited image is missed locally on the server the server should download it from the third-part server and store it locally prior to responding to the request.
So when client sends request
http://myserver/static/images/image1.jpg
and the image is missed locally (i.e /var/www/static/images/image1.jpg is missed) the server
Download the image from the another server
http://third-partserver/static/images/image1.jpg
Store it locally at /var/www/static/images/image1.jpg
Return the image to the client
Is there any way to make it possible by using existed Apache modules and configurations only without writing any specific code?
Related
I was going through the MS Doc https://learn.microsoft.com/en-us/windows-server/administration/windows-server-update-services/deploy/express-update-delivery-isv-support
where it talks about setting up Express installation through WSUS Server. I'm able to setup 'ISV file cache using HTTP Server' and No idea about the second method.i.e. 'ISV Local cache using local host & ISV Client Agent' Can some one help me in setting up the second scenario. Or redirect me to some documents where I can get helps.
I had to run a local server in agent machine, This can be of any web server which serves http requests. with python we can have a up and running http server with one line of code.
Current Setup: Large CMS that has an "authoring" server and multiple "delivery" servers. Both the authoring and delivery servers are Windows servers running 64-bit Apache. The Apache Web root is setup on each server exactly the same--points to a directory on a SAN. The delivery servers are load balanced via another Windows server running Apache. I just finished setting up the ImageResizer server as a standalone image server and wanted to see what the best approach to getting the ImageResizer server to access and thus serve up the images.
authoring server - a.site.com
delivery server - d.site.com
image server - i.site.com
So I guess the question is, what is the best way to allow the ImageResizer server access to the images that are part of a large CMS site? RemoteReader plugin? Setup the IIS site with the Web root as the same as the authoring and delivery servers? Any security issues with this approach? Any suggestions/alternate approaches?
Thank you!
If the SAN is well-behaved, SMB2 or later, and low-latency, you could mount the directory as a virtual folder within the IIS root (which you might want to keep separate).
For performance, it would be best to disable FCNMode - http://imageresizing.net/docs/v3/docs/fcnmode - particularly if you have lots of directories in the SAN.
Alternatively, you could use RemoteReader and point it to your Apache web servers, although you'll sacrifice the ability to update existing files (RemoteReader perma-caches everything to make performance reasonable).
I have a webpage which contains the button to upload a file. My requirement is, when user chooses the file to upload and click the submits it, the file should get transferred to an SFTP server. My question is, do I need a SSH client installed on the client machine for achieving this?
I thought of uploading it to my http server as a temp file first and then to the SFTP server from there, but then what's the purpose of SFTP on the first place as the file will be transmitted to server as unencrypted.
JSP is a server side technology. If JSP is going to be involved, then the code has to run on the server.
My question is, do I need a SSH client installed on the client machine for achieving this?
No. The server has to do the work.
I thought of uploading it to my http server as a temp file first and then to the SFTP server from there
That's how you would have to do it.
There's no way to interact with the SFTP protocols directly from client side code in a webpage.
then to the SFTP server from there, but then what's the purpose of SFTP on the first place
Good question: But you decided to use that technology, so that's up to you.
as the file will be transmitted to server as unencrypted.
To secure communications between the browser and the HTTP server, use HTTPS instead of plain HTTP.
I am using Apache server for redirecting the secure request to our web server [tomcat], we had also use the Apache server for load balancing.
and further I describe that, we pass the file object to server for the processing.
so at server side we get the file object null every-time when we use the load balancing server technique, this happen when we work with the load balancing environment.
if any body having idea and knowledge in it that please share it with us?
What is the issue with this null pointer exception?
I am using Glassfish v3.1 for a Java web application, which gets data from other servers as well. One of these servers is running Geoserver GIS. I can only have the Glassfish server on a public IP.
In order to load a map image, I can call from the JSF pages or any HTML page something like:
http://10.10.10.10:1234/map/query?someparameters&format=image/jpeg
which returns a jpeg image.
If I hardcode this into the pages, it works fine locally (i.e. when 10.10.10.10 is accessible by the browser) but of course fails remotely.
Other than grabbing the image as a file/stream through a bean and then serving it to the server, is there a simpler way to serve these images through the web server? Ideally using Glassfish as some kind of proxy that pushes all request for say http://myserver.com/map to http://10.10.10.10:1234?
HTTP Proxy Servlet looks like it will do what you are looking for. There are likely to be other methods (like putting GF and the geoserver behind an Apache server and using mod_proxy) that would work, too.