Browsing articles tagged with "reverseproxy - 3/22 - Admins Goodies"
Mar 29, 2012
tom

eXist-db: can’t start webstart client on a closed port, reverse proxied via apache

I am configuring an Apache HTTP server so it reverse proxies requests starting with /app/ to an eXist-db instance running in a Tomcat server, on port 8082. This port has been closed in the firewall and is inaccessible to the outer world. Following the eXist documentation, I have following rules in place in my httpd.conf file: ProxyPass /apps/ http://localhost:8082/ ProxyPassReverse /apps/ http://localhost:8082/ ProxyPassReverseCookiePath /apps/ / All goes well for requests to e.g. ‘http://mydomain/apps/exist/index.xml’. Yet, the […]

Continue Reading »
Mar 27, 2012
tom

Route multiple subdomains on one external ip to multiple internal ips

i have several subdomains(git.example.org, build.example.org, etc.), i have a router with an external ip and i have several virtual machines on a host computer with internal ips. Now i want to route git.example.org to internal ip 10.0.2.1 and build.example.org to internal ip 10.0.2.2. How can I do this? I setup in the Router that all traffic on port 80 is comming to my host computer with internal ip 10.0.2.3 and installed Squid on that computer. […]

Continue Reading »
Mar 26, 2012
tom

plesk: how to configure reverse proxy rules properly?

[edit]: FWI, thanks to Vadym’s comment below, I discovered that I had overlooked to enable mod_proxy_http on my Plesk server. Loading this module (alongside mod_proxy) fixed the original error. I’m trying to configure reverse proxy rules in vhost.conf. I have Apache-2.2.8 on Ubuntu-8.04, monitored by Plesk-10.4.4. What I’m trying to achieve is defining a reverse proxy rule that defers all traffic to -say- http://mydomain/tomcat/ to the Tomcat server running on port 8080. I have mod_rewrite […]

Continue Reading »
Mar 14, 2012
tom

Apache: redirect specific URL to a local server on different port

This seems straightforward, but I can’t make it work. I have a pretty trivial webserver that only needs to do two things: example.com/status.html returns a local file (this works) example.com/atom redirects the contents of the firewalled server running on the same machine on port 4000 This didn’t work: RewriteRule ^$ http://localhost:4000 That redirected traffic back to localhost:4000 from the requestor’s point of view (ie, on the client’s machine). My limited understanding of VirtualHost indicates that […]

Continue Reading »
Mar 14, 2012
tom

Why does using nginx as a reverse proxy break local links?

I’ve just set up nginx as a reverse proxy, so some sites served from the box are served directly by it and others are forwarded to a Node.js server. The site being served by Node.js, however, is displayed with no CSS or images, so I assume the links are somehow being broken, but don’t know why. The following is the only file in /etc/nginx/sites-enabled: server { listen 80; ## listen for ipv4 listen [::]:80 default […]

Continue Reading »
Mar 9, 2012
tom

Displaying custom error pages on different VirtualHosts in Apache

I have a reverse proxy Apache that is moving the request to a Tomcat servlet. The configuration on the Virtual Host in Apache is: <VirtualHost 10.10.10.10:80> ProxyPass /Site1/ServLet1 http://1.1.1.1/Site1/ServLet1 ProxyPassReverse /Site1/ServLet1 http://1.1.1.1//Site1/ServLet1ProxyPass /Site2/ServLet2 http://2.2.2.2/Site2/ServLet2 ProxyPassReverse /Site2/ServLet2 http://2.2.2.2/Site1/ServLet1 </VirtualHost> Essentially, if it comes to 10.10.10.10 and requests /Site1/ServLet1, route it to /Site1/ServLet1. if I add <VirtualHost 10.10.10.10:80> ProxyPass /Site1/ServLet1 http://1.1.1.1/Site1/ServLet1 ProxyPassReverse /Site1/ServLet1 http://1.1.1.1//Site1/ServLet1 ErrorDocument 404 /customerrors/site1/404.htmlProxyPass /Site2/ServLet2 http://2.2.2.2/Site2/ServLet2 ProxyPassReverse /Site2/ServLet2 http://2.2.2.2/Site1/ServLet1 </VirtualHost> so it will show […]

Continue Reading »
Mar 9, 2012
tom

How to proxy requests to an internal server using nginx?

I have setup a web server to view my repositories (a Gitalist instance) on http://localhost:3000 and I want to setup a proxy using nginx. I want that the request is proxied to my repository view when receiving a URI like DOMAIN/git/. My current nginx configuration has been declared as follows: location /git { proxy_pass http://localhost:3000/; } The requests do get proxied to the server but none of the images/links or css can be resolved as […]

Continue Reading »
Mar 6, 2012
tom

sub vcl_recv | Magento + Varnish

I would like to kindly ask someone for help. I browsed a lot of pages containing Varnish tutorials and sample VCL files, but I can’t find anything related to configurating Varnish for Magento (at least they don’t function right). All manuals I’ve found thrown a lot of errors during Varnish starting and it seems thay are suitable for old versions. (Also none of magento modules PageCache & Varnish Extension don’t work for me, because I […]

Continue Reading »
Mar 6, 2012
tom

Apache ajp reverse proxy redirect a specific page to https

I have apache load balancing reverse proxy with mod_proxy_ajp running and redirecting to the backend tomcat servers. I have also created a separate virtual host for HTTPS(SSL) along with HTTP virtual hosting. Both the below http://my.domain.net/ and https://my.domain.net/ virtual hosts are accessible and working fine individually. http ##: <VirtualHost *:80> ServerName my.domain.netProxyRequests On ProxyVia On ProxyPreserveHost On ProxyErrorOverride On ProxyStatus On<Proxy balancer://ClusterDomain> Order deny,allow Allow from allBalancerMember ajp://192.168.1.22:8009 route=web1 redirect=web2 ttl=300 timeout=5 retry=60 BalancerMember ajp://192.168.1.23:8009 […]

Continue Reading »
Mar 5, 2012
tom

Varnish only cache assets from single session

Currently I manage to configure varnish to cache items from 1 user, but the when the second users comes in varnish fetch another asset from Apache. How can I cache static assets behind magento ( css, js , image pdf etc ) accessible from multiple users ? On vcl_recv, I’ve configured : if (req.url ~ “\.(png|gif|jpg|swf|css|js)$”) { unset req.http.Https; unset req.http.Cookie; return (lookup); } On vcl_fetch : if (beresp.status == 200 || beresp.status == 301 […]

Continue Reading »
Pages:«1234567...22»