There is an addon on Heroku called Proximo, and I'm just curious what kind of server you would need to setup to run your own proxy? Would Squid do the same thing that Proximo is doing or does anyone have any experience/suggestions for how to setup one up?
Our app vitally needs a dedicated IP address and proximo is a bit expensive.
You can use either Squid, Haproxy or even nginx - they are all high-throughput and very stable proxy/caching solutions.
Related
I have developed a Jooby-Application which is hosted on a netty server. I can access the application on localhost and tests were fine. Now I want to make the app accessable over internet and dont know what is the best way to reach this goal?
The complete application is hosted on a Windows Server, because it uses Excel. (Read/Write over Apache POI. For macros it has to be Windows) Should I try to connect the running netty-server with IIS or can I just forward the requests from outside to localhost? The last mentioned approach propably is a bad idea regarding security issues.
It works with reverse proxy over IIS. I had to install some features like Application Request Routing and URL Rewrite. Then I can start the jooby application (netty server) as usual on a specific port at localhost and set a reverse proxy to it.
I am not sure why being on a window is necessary, anyways, Netty is just a Java network programming framework, it can run on any platform where Java is installed.
You need to host a server, you can buy a VPS, install windows as OS, install Java, you can run your application as you like.
What I understand is you need to test it, for that you can use any port forwarding service like https://pagekite.net/support/intro/features/ to enable "world access" to localhost
I'm trying to connect to ObjectRocket with my Heroku app, I'm running into a little problem where I can't seem to set a static IP (tried Proximo for that).
ObjectRocket requires me to define all IP's connecting to the database, so I need a non-dynamic IP for my heroku app.
How could I create this, or is this not possible with Heroku?
Hello you can use this answer to see how to use NGINX as a reverse proxy.
https://stackoverflow.com/a/27874505/1345865
http://blog.talenox.com/post/107675614745/how-to-setup-static-ip-on-heroku
If in your case where you require a outbound reverse proxy, setup an AWS instance and use NGINX to point it to ObjectRocket as your backend
Given a local, multi-tenant dev environment (Win7 Ultimate) where host entries resolve to localhost and requests to multiple local hosts are made on :80 (etc), what's a sane way to proxy requests to either IIS (listening locally on an arbitrary static port) or another backend (i.e. a VBox VM listening on :80 on one of its own interfaces)? Basically, what's the simplest way to balance between different web servers on a FQDN/hostname basis from a common address?
As far as I can tell, ARR seems like it might be a little much config-wise, so I'm hoping to do something a la nginx/HAProxy/Pound/etc where proxying can be configured per the Host HTTP header.
What is the preferred way of deploying a compojure/sinatra applications? I have multiple sites running on the host so i can't run jetty/mongrel on port 80. How should i handle multiple sites/applications running at the same host?
Use a web server such as Apache that runs on port 80 and use virtual hosts to direct the traffic to the right app server. So basically you would run each application server (jetty/mongrel, etc.) on a different port and then in each virtual host would have a different configuration to use something like mod proxy to forward the traffic to the app server. You could use a different web server such as lighttpd or nginx. For the sinatra app you could also look at Phusion Passenger, a.k.a mod rails, a.k.a mod rack, which theoretically works with any rack app, although I've only used it with Rails.
If you look into it some more you'll find that there are various schemes for forwarding traffic to the app server from a web server, but the basic mechanism for doing this kind of thing always boils down to having a web server that listens on port 80 that uses name-based virtual hosts to then forward the traffic to the appropriate app.
I've been doing this kind of thing with various standalone servers (e.g., AllegroServe) for years. I've found the best approach to be:
Run each server on a different, non-privileged port (such as 8080)
Run pound (or Nginx etc.) on 80, configured to map requests to each application.
Pound is great, and the configurations end up very simple (unlike Nginx). It will also do SSL fronting and HTTP sanitization for you, which takes the burden off your application.
Use passenger! http://modrails.com - it is a plugin for apache and nginx that lets you (very) easily run a ruby app as a virtual host
I would like to set up a proxy server on Fedora Core 4. Any idea of which ones might be easy to set up? I would like to connect through that server and receive an IP address from my ISP, since I have IP-address filtering on my apache server.
Squid is an option, but I'm not sure how easy or hard it is to set up.
Thanks.
if you're familiar enough with apache it may be easier to set that up as a proxy (mod_proxy). squid is probably more robust though if you want a dedicated proxy.