Articles of 代理

如何在反向代理Apache后面使用Bugzilla?

我们有一个坐在内部服务器上的bugzilla服务。 我们正试图通过一个可以作为代理的Apache服务器从外部访问它。 到目前为止,通过mod_proxy和mod_proxy_html,我们可以通过代理服务器透明地获取Bugzilla。 问题是与login。 当用户提交他的凭证时,他会收到他所识别的确认页面。 但是,一旦他点击链接,他不再是被redirect到识别页面。 我想不知何故,cookie /会话信息丢失。 这是要修复Apache代理端? 或在Bugzillaconfiguration? 感谢您的帮助。 这是Apache代理的vhostconfiguration: <VirtualHost *:*> ProxyPreserveHost On ProxyHTMLEnable On ProxyHTMLLogVerbose On LogLevel Info ProxyRequests off ProxyPass /bugzilla/ http://bugzilla.internal_domain.com/ ProxyPassReverse /bugzilla/ http://bugzilla.internal_domain.com/ ProxyHTMLURLMap http://bugzilla.internal_domain.com /bugzilla ProxyHTMLURLMap / /bugzilla </VirtualHost>

在本地主机上进行代理

2服务器:服务器1在公共IP上,服务器2在本地局域网上。 我现在正在使用Server1上的代理。 但是我需要在Server2上添加一个不是公认的域名的本地主机。 所以我通过代理添加它。 似乎在这里有困难。 让我知道。 我在server1和server2的虚拟主机文件上添加了本地主机,但不起作用。 目前在服务器1上使用代理设置和工作方式安装,这是httpd_vhosts.conf中的内容。 ProxyRequests Off ProxyPreserveHost On NameVirtualHost * <VirtualHost *:80> ServerName domain1.com ServerAlias www.domain1.com DocumentRoot "/Library/Server/mydocuments" <Directory "/Library/WebServer/mydocuments"> Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> ServerName domain2.com ServerAlias www.domain2.com ProxyPass / http://10.1.10.2:80/ ProxyPassReverse / http://10.1.10.2:80/ </VirtualHost> 对于新的本地主机,我在上面的Server1的httpd_vhosts.conf中添加了这个。 <VirtualHost *:80> ServerName nynews.domain1.com ServerAlias www.nynews.domain1.com ProxyPass / http://10.1.10.2:80/ ProxyPassReverse […]

鱿鱼caching日志给“页面错误与物理”的错误! 这是一个记忆问题吗?

我已经在一个有640MB内存的小机器上安装了一个Squid代理。 我也禁用caching“caching拒绝所有” 当我检查cahce日志…我看到这样的错误: CPU使用率:0.248秒= 0.140用户+ 0.108 sys 最大驻留尺寸:51232 KB 具有物理I / O的页面错误:0 mallinfo的内存使用情况(): total space in arena: 2112 KB Ordinary blocks: 2107 KB 19 blks Small blocks: 0 KB 1 blks Holding blocks: 26652 KB 9 blks Free Small blocks: 0 KB Free Ordinary blocks: 4 KB Total in use: 28759 KB 1362% Total free: […]

HTTPlogging代理

我想实现一个代理,logging和重播对特定主机的请求。 这样我可以在testing应用程序时将外部服务请求删除。 做这个的最好方式是什么? 我已经尝试修改hosts文件,以便domain.com进入我的本地主机,但是这样就阻止了我的代理从那个请求到那个域。 是否有一些/ etc / hosts更改和iptables的组合,我可以用它来实现这一点?

转发乌贼stream量到Tornetworking

我在我的Ubuntu机器上安装了鱿鱼,我想从鱿鱼代理请求转发到Tornetworking。 这可能没有易变的变化? 我知道Tor代理是客户端的代理服务器。

鱿鱼进入无限循环

我几乎没有试图添加一个互联网接入组,这是我们的terminal,客户只能看到几个网站。 我把它们称为InternetUserTerminal,增加的行用粗体表示,这个房子的星形configuration将不带粗体。 但得到一个不定式的循环,被封锁的站点只对坏的网站,所以标准的用户不会得到坏的限制访问只允许浏览白名单和terminal访问应该类似于受限制,但与其他“白名单” – termiallist 。 有没有更聪明的方法来解决这个漏洞问题? 我也可以解决这个问题,但是我还年轻,所以如果你有2分钟的解释我更聪明的方式,我会非常感谢! /etc/squid3/squid.confconfiguration文件 cache manager cache_mgr [email protected] provide basic authentication via ldap for clients not authenticated via kerberos/ntlm auth_param basic program /usr/lib/squid3/squid_ldap_auth -R -b "dc=somewherein,dc=local" -D [email protected] -W /etc/squid3/ldappass.txt -f sAMAccountName=%s -h philipp.somewherein.local auth_param basic children 10 auth_param basic realm Internet Proxy auth_param basic credentialsttl 1 minute ldap authorisation […]

Squid cache_peer设置DNS问题

我们目前有4个鱿鱼代理服务器在没有特定的层次结构。 其中一些遇到间歇性的DNS问题,我们收到以下错误: “caching无法parsingURL中显示的主机名。” 但是,如果我将浏览器指向其他代理服务器并重新加载页面,则一切正常。 作为任何未来的DNS问题的回退,我想configurationsquid的cache_peer设置,以自动查询另一台代理服务器,如果主机名不能在本地解决。 我试图configurationcache_peer如下: cache_peer 1.2.3.4 sibling 8080 0 no-query cache_peer 1.2.4.4 sibling 8080 0 no-query cache_peer 1.2.5.4 sibling 8080 0 no-query 鱿鱼-k重新configuration后,我的caching日志显示: Configuring Sibling 1.2.3.4/8080/0 Configuring Sibling 1.2.4.4/8080/0 Configuring Sibling 1.2.5.4/8080/0 当我浏览到我的麻烦url,我得到同样的错误,这显示在access.log: 1329952290.176 22100 my.ip.ad.dr TCP_MISS / 503 1663 GET http://www.troublesomeUrl.com – DIRECT / www.troublesomeUrl.com text / html 任何人都可以帮我解决这个问题吗? 不知道我在这里做错了什么!

Apache作为Mongrel的代理。 PHP不parsing

我已经定义了下面的configuration来代理Apachestream量到Mongrel来运行Redmine。 在这一点上,所有的PHP脚本现在都被浏览器下载,而不是被parsing。 一旦我删除这个configuration,每一件事情都会恢复正常。 有什么我可能会丢失或有一个错过configuration? 不幸的是,在apache error_log和php_error.log都没有错误。 #define mongrel cluster <proxy balancer://mongrelcluster> BalancerMember http://127.0.0.1:81 </proxy> #forward requests to mongrel cluster <virtualhost *:80> ServerName domain.com ServerAlias host.domain.com ServerAlias <server ip> ProxyPreserveHost on ProxyPass / balancer://mongrelcluster/ ProxyPassReverse / balancer://mongrelcluster/ </virtualhost>

奇怪的东西到x-ns开始的Accept-Language头中

我们正在获取这种HTTP头: Accept-Language: fr-CH,x-ns1Ci7OslejNxN,x-ns2af6MxcVGQb2 任何人都可以帮助我知道它从哪里来。 我只是因为好奇才问这个。 四处搜寻,我怀疑是一个鱿鱼代理,但我希望有一个完整的解释。

奇怪的networking代理问题

我所有的外部连接都需要经过一个代理,所以对于我的用户,我已经添加了这条线让我可以自由地 在〜/ .bashrc export http_proxy=http://10.50.24.125:8080/ 上面的部分很好,但是对于我有的PHP脚本,我试图使用php_curl来获取文件,所以我也在那里定义了相同的代理: $curlHandle=curl_init(); curl_setopt($curlHandle, CURLOPT_URL, 'http://www.google.com'); curl_setopt($curlHandle, CURLOPT_HTTPPROXYTUNNEL, true); curl_setopt($curlHandle, CURLOPT_PROXYPORT, 8080); curl_setopt($curlHandle, CURLOPT_PROXY, '10.50.24.125'); $out=curl_exec($curlHandle); echo $out; curl_close($curlHandle); 但是,我没有看到任何结果,并且出于某种奇怪的原因,当我在运行脚本的netstat -n时,可以看到脚本尝试创build的连接,这是一个奇怪的部分: tcp 0 0 10.50.25.83:80 10.20.5.15:51194 TIME_WAIT 所以不是连接到10.50.24.125:8080,而是在一个随机的端口上连接到10.20.5.15,而本地的源端口是80? 有任何想法吗? 注意:运行CentOS 5.6