我在nginx反向代理背后的不同机器上有一个wordpress站点。 远程主机是10.0.1.1/kehitys/testi/wordpress,我想将其作为www.host.com/提供。 有没有什么办法可以configurationnginx从URL中删除/ kehitys / testi / wordpress /,并由远程服务器返回? 我的configuration如下所示: location / { rewrite /(.*) /kehitys/testi/wordpress/$1 break; proxy_pass http://10.0.1.10; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_redirect http://10.0.1.10/kehitys/testi/wordpress/ /; proxy_bind 10.0.1.1; proxy_pass_header Set-Cookie; }
具有一个物理IP = 10.2.2.1和逻辑IP = 10.2.2.2的Apache代理 configuration与以下类似 <VirtualHost *:80> ServerName example.com <Location /> ProxyPass http://server:8080/ ProxyPassReverse http://server:8080/ </Location> </VirtualHost> <VirtualHost *:80> ServerName example2.com <Location /> ProxyPass http://server:8081/ ProxyPassReverse http://server:8081/ </Location> </VirtualHost> <VirtualHost 10.2.2.2:443> ServerName example3.com SSLEngine on SSLCertificateFile /example3.com.cer SSLCertificateKeyFile /example3.com.key SSLCertificateChainFile /example3chain.com.cer Redirect / https://example3.com <Location /> ProxyPass http://server:8082/ ProxyPassReverse http://server:8082/ </Location> </VirtualHost> <VirtualHost 10.2.2.1:443> […]
我有两个盒子 一个Ubuntu和一个Windows两个主机的HTTP和FTP站点之前,他们通过不同的IP连接到互联网,所以没有任何问题,但是,我们现在只有一个公共IP,我必须使这两台机器availlable没有changin端口。 现在,既处理不同的域名,我已经在ubuntu中添加了一个虚拟主机,该虚拟主机代理反向到所需域上的Windows盒子 但是,当涉及到ftp我不知所措如何处理在ubuntu框中的域A,并推迟域b由Windows窗口框处理? 我在ubuntu中使用vsftpd,在Windows中使用IIS 任何帮助赞赏 路易斯
我正在面对一个奇怪的问题与我的Apache反向代理服务器的安装Sharepoint。 当我通过代理login到Sharepoint,然后其他人通过代理打开Sharepoint时,他已经使用我的帐户login。 你有什么想法可能是错的吗? 这是Apache的configuration: <VirtualHost *:443> SSLEngine On SSLProxyEngine On SSLCertificateFile /etc/apache2/ssl/sharepoint.pem ProxyPreserveHost Off ProxyRequests Off ProxyHTMLExtended On ProxyHTMLLogVerbose On LogLevel Debug ProxyHTMLURLMap https://sharepoint.portal.de/ / SetOutputFilter INFLATE;proxy-html;DEFLATE Header edit Location ^https(\:\/\/sharepoint.portal.de)(.*)$ https://192.168.120.19$2 ProxyPass / https://sharepoint.portal.de:443/ ProxyPassReverse / https://sharepoint.portal.de:443/ </VirtualHost>
这是我第一次遇到像这样的问题。 我mod_ajp on 8009使用mod_ajp on 8009 apache2后面有一个java应用程序设置。 我注意到我无法获得客户端的IP,所以我创build了另一个虚拟主机文件并切换到mod_jk 。 然后我使用mod_ajp禁用虚拟主机。 所以我的mod_jk一直工作正常,直到我开始从fanclub安全强化。 我已经应用notpad2.blogpost.com上显示的方法,我还是很好。 今天早上,我看到在modsecu_audit.log文件中的日志: Action: Intercepted (phase 1) Stopwatch: 1394809780952048 3090 (- – -) Stopwatch2: 1394809780952048 3090; combined=812, p1=492, p2=0, p3=0, p4=0, p5=253, sr=143, sw=67, l=0, gc=0 Response-Body-Transformed: Dechunked Producer: ModSecurity for Apache/2.6.3 (http://www.modsecurity.org/); OWASP_CRS/2.2.5. Server: Apache WebApp-Info: "default" "C35A8A3AB916218E923E5A8E6A73595B" "" –81b0e75f-Z– 在虚拟主机error.log我有下面的错误 [Thu Mar 13 […]
我必须在正在运行的生产服务器之前实现一个代理服务器来路由和保护生产服务器。 在生产服务器上多个node.js应用程序监听不同的端口。 client1.example.com –> ProxyServer –> Application on LiveServer1 at port 3001 client2.example.com –> ProxyServer –> Application on LiveServer1 at port 3002 … client100.example.com -> ProxyServer –> Application on LiveServer6 at port 3001 所有子域名只能通过https访问,用户不应该被注意到任何ssl证书问题(man-in-the-the-middle)。 我正在调查使用Squid或Nginx。 你能推荐什么这个设置?
我正在运行nginx / 1.1.19: # nginx -V nginx version: nginx/1.1.19 TLS SNI support enabled configure arguments: –prefix=/etc/nginx –conf-path=/etc/nginx/nginx.conf –error-log-path=/var/log/nginx/error.log –http-client-body-temp-path=/var/lib/nginx/body –http-fastcgi-temp-path=/var/lib/nginx/fastcgi –http-log-path=/var/log/nginx/access.log –http-proxy-temp-path=/var/lib/nginx/proxy –http-scgi-temp-path=/var/lib/nginx/scgi –http-uwsgi-temp-path=/var/lib/nginx/uwsgi –lock-path=/var/lock/nginx.lock –pid-path=/var/run/nginx.pid –with-debug –with-http_addition_module –with-http_dav_module –with-http_geoip_module –with-http_gzip_static_module –with-http_image_filter_module –with-http_realip_module –with-http_stub_status_module –with-http_ssl_module –with-http_sub_module –with-http_xslt_module –with-ipv6 –with-sha1=/usr/include/openssl –with-md5=/usr/include/openssl –with-mail –with-mail_ssl_module –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-auth-pam –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-echo –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-upstream-fair –add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-dav-ext-module 我正在使用它来反向代理服务,可以stream数据作为分块的响应。 后端服务中的每个块都是一个有效的JSON文档,但是当通过nginx代理访问时,块被重新打包成'round'大小,如0x1000,0x2000,0x4000等。这使得块不再有效的JSON blob,每个块将在开始时具有一个文档的结尾,并在结尾处具有另一个文档的开头。 我的location块是这样configuration的: location / { proxy_pass http://backend; […]
我有一些与我的Apache反向代理错误。 目前我正在做4个网站的反向代理。 1.1.1.1/a 1.1.1.2/b 1.1.1.3/c 1.1.1.4/d 反向代理到a和b网站时,我没有问题。 形象是好的,没有问题。 但是,当涉及到C和D的网站。 图像没有得到加载。在我的access_log,这里是日志。 – – [08/May/2014:10:40:36 +0800] "GET /whatshot_v3/images/promo/img_samplePromo.jpg HTTP/1.1" 404 1245 – – [08/May/2014:10:40:36 +0800] "GET /images_v3/menu/faq_butt_03.png HTTP/1.1" 404 1245 – – [08/May/2014:10:40:36 +0800] "GET /images_v3/banner/text_planprice.gif HTTP/1.1" 404 1245 – – [08/May/2014:10:40:36 +0800] "GET /images_v3/banner/text_services.gif HTTP/1.1" 404 1245 – – [08/May/2014:10:40:36 +0800] "GET /images_v3/banner/text_account.gif HTTP/1.1" 404 1245 […]
我正在为我的工作组运行通过Apache 2.2服务器进行反向代理的Gitlab 。 最近,我们想上传一些组徽标作为项目头像。 上传全部成功完成(通过SSH在目录列表中确认),但图像从未出现 – 而我们只是得到了404。 我们使用Apache的mod_proxy连接到一个独angular兽后端。
我们在nginx后面有几个面向外部的web应用程序,像这样: https://app1.mycompany.com – > server1:8080 / app1 https://app2.mycompany.com – > server2:8080 / app2 https://app2.mycompany.com – > server2:8080 / app3 我要求将nginxconfiguration更新为代理使用子文件夹,而我们的系统pipe理员告诉我们,这是不可能在https下,因为请求url本身是encryption的。 我们的系统pipe理员非常有知识和安全意识,他说的是有道理的。 但是,我曾经在联合系统(作为应用程序开发人员),其中https请求子文件夹被代理到单独的应用程序。 有人可以帮我理解什么types的设置是必要的,以达到以下目的: https://www.mycompany.com/app1 – > server1:8080 / app1 https://www.mycompany.com/app2 – > server2:8080 / app2 https://www.mycompany.com/app3 – > server2:8080 / app3