Articles of 反向代理

TMG反向代理和基本configuration

我最近设立了TMG2010,我相信我的configuration做错了。 除了Web发布/反向代理设置之外,我不想运行任何其他的东西 。 我的互联网去到一个ASA,它是在外部静态端口80到10.1.20.5(TMG机器 – 从dmznetworking10.1.20.0在asa)TMG机器有第二nic(10.1.10.x与网关10.1.10.1)用于内部连接到Web服务器。 什么是最简单的方式,我可以确保内部/外部networking组设置正确(我认为是我目前的问题)validation我的networking监听程序工作正常,然后在不同的内部IP上发布几个网站。 我已经看过一些关于设置networking转发的指南,但是他们都假定networking组已经正确设置。 我的绝对不会是这样的。 我改变了内部networking10.1.10.0 – 10.1.10.255,外部networking似乎是不可configuration的,我不知道我是否需要别人。 谢谢! 这些是我尝试将“内部”适配器添加到“内部”networking组时所获得的范围: 0.0.0.1 – 10.1.19.255 10.1.21.0 – 126.255.255.255 128.0.0.0 – 223.255.255.255 240.0.0.0 – 255.525.255.254 当我添加DMZ适配器,我得到相同的第一,第三和第四组,但第二组是: 10.1.11.0 – 126.255.255.255 我觉得这些不应该是“内部”networking组中的地址。 “本地主机”“隔离区”或“VPN客户端”

Proxy over Redis,HAProxy或twemproxy?

隐藏主/从redis服务器切换的最佳方法是使用主服务器上的代理。 在代理候选人中,有两个更重要的(和使用的)select: twemproxy和haproxy(> = 1.5) 如果我们对某些twemproxy特性(比如分片)不感兴趣(并且只对proxing工作感兴趣),哪一个更好(为什么?)

带有多个ssl域的Nginx反向代理

当我需要将它configuration为基于源服务器的多个位置的反向代理时,我在Nginx中遇到问题,但在一个端口上。 例如,我有这些服务器: server1.domain.com server2.domain.com server3.domain.com nginx.domain.com是Nginx反向代理服务器 我需要通过这个scheme访问: nginx.domain.com/site -> server1.domain.com/site (https) nginx.domain.com/site2 -> (https) server2.domain.com/site2 (https) nginx.domain.com/site3 -> (https) server3.domain.com/site3 但是现在我只能访问configuration中第一个的site2。 当我改变命令,然后是工作site3。 所有服务器的位置configuration都可以。 我的default.conf我有以下configuration。 服务器1 server { listen 80; server_name server1.domain.com; access_log off; error_log off; # some locations } 服务器2 server { listen 80; server_name server2.domain.com; access_log off; error_log off; # some locations } server […]

简单的Nginx proxy_pass(让我疯狂)

Nagios由具有以下configuration的名为“nagios”的nginx虚拟服务器提供服务: # nagios server server { server_name nagios; root /usr/share/nagios/share; listen 80; index index.php index.html index.htm; access_log /etc/nginx/logs/nagios.access.log; allow 10.10.0.0/16; allow 127.0.0.1; location ~ \.php$ { fastcgi_pass unix:/run/php-fpm/php-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param AUTH_USER "nagios"; fastcgi_param REMOTE_USER "nagios"; fastcgi_index index.php; include fastcgi.conf; } location ~ \.cgi$ { root /usr/share/nagios/sbin; rewrite ^/nagios/cgi-bin/(.*)\.cgi /$1.cgi break; fastcgi_param AUTH_USER "nagios"; […]

主动/被动反向代理与Nginx

我有两个Websocket服务器,与Zookeeper & Curator一起工作,如果一台服务器出现故障,那么第二个后端活起来。 我按照以下方式configuration它: upstream backend { server 172.31.9.1:8080 max_fails=1 fail_timeout=5s; server 172.31.9.0:8080 max_fails=1 fail_timeout=5s; } server { listen 443; # host name to respond to server_name xxxxxx.compute.amazonaws.com; ssl on; ssl_certificate /etc/ssl/certs/wildcard.dev.xxxx.net.crt; ssl_certificate_key /etc/ssl/certs/wildcard.dev.xxxx.net.key; location / { # switch off logging access_log off; proxy_pass http://backend; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # […]

如何使前端HTTP代理无需停机即可执行应用程序维护?

我们在Java中有一个Web应用程序(尽pipe这个语言与这个问题并不相关),而且它是Apache通过一个简单代理的前端。 有没有办法排队来自客户端的所有HTTP请求(以便他们的HTTP连接保持而不是丢弃),而我们closuresJava应用服务器(或任何其他容器…)与我们的应用程序。 维护时间<60秒,所以我们的想法是,我们只是部署一个新版本的应用程序,然后说“允许stream量再次回到Web应用程序”,以便客户将遇到延迟,但不是一滴连接 – 作为排队的请求将不会被允许到达我们的应用程序。 更清楚的是,我们不是在这里处理一个网站,但实际上这些是通过HTTP完成的API请求,而客户端实际上是使用支持指定延迟的代码库 – 因此客户端将知道要等待(当我们在做维护)。 你有什么想法? 如果需要的话,如果没有明显的/现成的解决scheme,我们可以开发一个小应用程序,虽然这是一个很普遍的问题,任何人都提供一个HTTP API到他们的客户端。

使用Nginx作为Web服务器和反向代理

我正在尝试将Nginx设置为反向代理和Web服务器。 我在试图了解如何做到这一点上遇到了问题。 假设我使用了默认的Symfony2 nginxconfiguration( http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html ): server { server_name example.com www.example.com; root /var/www/project/web; location / { # try to serve file directly, fallback to app.php try_files $uri /app.php$is_args$args; } # DEV # This rule should only be placed on your development environment # In production, don't include this and don't deploy app_dev.php or config.php location […]

在本地模拟代理服务器(使用fiddler和windows防火墙)

我的客户正在使用他们公司的代理服务器,我想设置开发环境来testing与代理问题有关的开发。 所以,我想build立一个代理服务器来阻塞所有的80端口请求,除非请求被代理服务器请求。 这是我试过的: 在端口8888上安装fiddler2。 在Windows防火墙上设置两个规则: 阻止所有端口80请求。 允许来自fiddler exe的所有请求。 然后,我打开FF,并将代理服务器更改为127.0.0.1:8888。 不幸的是,来自提琴手的请求仍然被阻止。 我究竟做错了什么? 有没有其他的程序更容易? (也试图与CCProxy没有成功)。

会话丢失在Jetty使用Apache作为代理

我有一个基于eXist-db的应用程序。 这基本上是一个使用Jetty的Java Web应用程序。 它运行在Apache代理之后的远程Linux服务器上。 我使用下面的Apacheconfiguration: ServerName domain.com ProxyRequests off ProxyPass /myapp http://localhost:8899/exist/apps/myapp ProxyPassReverse /myapp http://localhost:8899/exist/apps/myapp 一切工作正常,除了会议。 每次请求会话都会被更新。 这意味着请求Cookie头不包含JSESSIONID但响应Set-Cookie头是类似JSESSIONID=oryq5odyt3f79xxax25n7x0h;Path=/exist 。 此外,我检查确认会话是每次新的应用程序中的会话ID。 我已经尝试了三种testing场景: testing场景A: 客户端:Windows 7,Google Chrome 服务器:Ubuntu 12.04.4 LTS(GNU / Linux 3.11.0-26-generic x86_64),代理Apache / 2.4.9 testing场景B: 客户端:Windows 7,Google Chrome 服务器:CentOS 6.6版(最终版),Apache / 2.2.15代理版 testing场景C(本地): 客户端:Windows 7,Google Chrome 服务器(相同的笔记本电脑):Windows 7,没有代理 问题出现在A和B两种情况下,但不在C中 任何想法如何使会议工作?

在CentOS 7 Apache 2上使用HTTPS Index.html而不是ProxyPass反向代理站点时

目标是外部用户可以通过HTTPS进行连接,通过Apache的基本身份validation,然后查看代理tomcat站点。 我已经build立了一个反向代理到一个运行在不同端口上的同一台机器上的tomcat服务器,使用基本authentication:(/etc/httpd/conf.d/vhost.conf) NameVirtualHost *:80 <VirtualHost *:80> ServerName sub.domainx.co.uk ErrorLog "/var/log/proxy/domainx_prox_error_log" CustomLog "/var/log/proxy/domainx_prox_access_log" common ProxyRequests Off <Proxy *> Order deny,allow Deny from all Allow from all </Proxy> <Location /> AuthType Basic AuthName "Proxy Auth" AuthUserFile /var/www/syzygy-auth/CONFLUENCE/.htpasswd Require user ukuser Satisfy any Deny from all Allow from 192.168.0.0/21 </Location> ProxyPass / http://sub.domainx.co.uk:8090/ ProxyPassReverse / http://sub.domainx.co.uk:8090/ </VirtualHost> 以上工作正常。 […]