Articles of redirect

如何让pipe理员访问文件夹redirect的用户文件夹?

如果希望允许pipe理员通过文件夹redirect访问驻留在服务器上的用户文件夹,似乎需要遵循两个步骤: 设置共享文件夹的权限 设置GPO KB288991提供了在Windows Server 2003上这样做的详细信息。但是,这些说明似乎不适合Windows Server 2012 Essentials。 特别是,当按照设置权限的说明进行操作时,第5部分提出了一些问题,指示您执行以下操作: 清除允许来自父级的可inheritance权限传播到此对象和所有子对象。 包括这些明确定义在这里的条目 。 checkbox。 在Windows Server 2012上,似乎没有这样的checkbox。 什么是等效的?

Nginx基于参数中的关键字redirect

我对nginx非常陌生(大约1天左右),我们正在使用它作为一些应用程序的反向代理。 我们将添加另一个将处理现有请求的一小部分的应用程序。 我正试图拦截那些碰到鳕鱼/文章API并在参数中包含item.id的url,然后把这些请求和它们的参数发送到这个我现在所没有准备好的新应用程序。 我想单独留下所有其他请求,即API不是“/ cod / acticles”,请求在参数中不包含item.id。 应该发送到新应用程序的示例url。 http://server/mdata/transfer/CUSTOMER/cod/articles?filter={"item.id":"ID00000000123"……}&limit=50&fields=[]&sort=……. 不应该发送的示例url。 http://server/mdata/transfer/customer/cod/articles?filter{"lang":"en_US","article.id":"123456"}&limit=50…. http://server/mdata/transfer/customer/cod/items?filter{"lang":"en_US","article.id":"123456"}&limit=50…. http://server/mdata/transfer/customer/doc/articles?filter{"lang":"en_US","article.id":"123456"}&limit=50…. 注意:….只是意味着其他参数 以下是我目前在Nginx中的configuration。 它似乎做了“拦截”,但有一些东西看起来不对我。 首先,我相信使用“如果”并不理想,可能有更好的方法来做到这一点。 但是我没有成功的匹配参数部分。 其次,nginx访问日志显示3个匹配url的请求。 X2301响应和1200响应。 这是预期的吗? 如果是这样,有一个更好的方法来做到这一点,只有一个请求,因为它似乎我已经创build了Nginx的附加负载。 #existing config for all /mdata/transfer/* APIs location /mdata/transfer/ { add_header Access-Control-Allow-Origin *; allow all; proxy_pass http://mds; } #static page which acts as a stub end point for testing. location /proxyapp { root /opt/www; […]

nginx返回给URL添加了尾部的斜线

这个redirect添加了一个尾部的斜线,打破了我想要花费的链接,确切的代码如下: server { listen 80; server_name graphwhy.org; return 301 https://www.surveymonkey.com/r/nationaldebt$request_uri; } 目前当有人inputgraphwhy.org到他们的浏览器,他们被redirect到https://www.surveymonkey.com/r/nationaldebt/这个url是不承认。 Survey猴只会认识到https://www.surveymonkey.com/r/nationaldebt 有人可以帮我删除尾部的斜线。 先进的谢谢你。

HTTP到HTTPS与mod_rewrite; Apache需要重启

我刚刚注册,这是我的第一个问题。 如果我需要在别的地方问问,请告诉我。 我们需要为SSLconfiguration站点,并将所有HTTP通信redirect到HTTPS。 我们决定使用mod_rewrite,因为我们已经使用了一些重写规则。 这些变化在我们的开发环境中进行了testing,并且按预期工作。 我们对生产进行了改变,发现它工作了几个小时,但最终开始失败,网站变得不可用。 一旦Apache服务重新启动,该站点恢复。 不幸的是,它不会持久,最终需要重复。 有人提到我的一些指导,说mod_rewrite不build议,并使用VirtualHosts来代替。 我想了解为什么这是首选的方法,并希望find我们遇到的问题的根源。 我们刚刚closures了重写规则,网站在443和80上都稳定下来。 https://wiki.apache.org/httpd/RewriteHTTPToHTTPS “注意:使用mod_rewrite来做到这一点不是推荐的行为” https://wiki.apache.org/httpd/RedirectSSL “虽然推荐这个解决scheme是因为它更简单,更安全,但也可以使用mod_rewrite来获得与此处所述相同的效果” 有没有人知道为什么这是build议通过mod_rewrite的具体细节? 类似的经验? 关于下一步的build议? Apache 2.4.18 在Windows Server 2008 R2上运行 我们尝试了MaxConnectionsPerChild 0和其他值没有区别。 我看到MaxConnectionResetsPerChild在“中断”期间到达,这些重置似乎不能解决问题..而不是手动重新启动Apache服务/父进程。 RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https//wontletmepostlink.duetorep/1$ [R,L]

如何添加项目到文件夹redirect没有任何其他人有访问?

我正在与约70个用户的AD域。 有一个文件夹redirect每个人都有相同的桌面。 但是,一个特定的用户需要在她的桌面上有一个没有人应该访问的文件夹(她是办公室经理)。 有办法将文件夹放在她的桌面上,没有人看到它? 我的意思是,我可以在该文件夹上设置特定的权限,但似乎超级迂回。 最终,如果他们想把多个项目放在桌面上,效率将会非常低下。

HAProxy 1.6使用http-response,map和regsubredirect

我想设置一个类似于这个https://stackoverflow.com/questions/23001799/how-do-i-used-the-map-feature-in-haproxy-to-build-massive-redirect-tables- 1-5 不同之处在于我想使用http-response而不是http-request 。 原因是因为我只想在后台服务器返回404时redirect。 这是我的configuration http-response redirect location %[capture.req.uri,regsub(\?(.*),),map(/etc/haproxy/redirects.map)] code 301 if { status 404 } { capture.req.uri,regsub(\?(.*),),map(/etc/haproxy/redirects.map) -m found } 我试图使用regsub从capture.req.uri删除查询参数。 但是,重新启动HAProxy时出现此错误。 [ALERT] 280/171612 (6176) : parsing [/etc/haproxy/haproxy.cfg:87] : error detected in proxy 'http' while parsing 'http-response redirect' rule : error in condition: invalid arg 2 in conv method 'regsub' : missing arguments […]

Nginx将stream量redirect到ilo

我有一个带有ilo和nginx服务器的hp proliant服务器。 要从路由器外部到达ilo,我使用端口81和444,因为80和443已经被nginx占用。 但有没有办法,我可以以某种方式通过nginxredirect到某个域的交通(如ilo.example.com)到我的ilo IP?

如何设置index.html将wget查询redirect到其他页面/文件?

如果我的服务器在example.com ,正在运行 $ wget example.com 只会下载文件index.html 。 我怎样才能使wget 下载另一个文件,而不是index.html 沿索引,html下载这个文件 我可以find所有的redirectpubkey.asc是我的文件): <meta http-equiv="Refresh" content="seconds; url=pubkey.asc "> <script language="javascript"> window.location.href = "http://example.com" <link rel="canonical" href="pubkey.asc"/> <script> document.location.href="pubkey.asc";</script> <script>window.location.href='pubkey.asc';</script> <meta http-equiv="refresh" content="0; url=pubkey.asc" /> PS:我在这里发布而不是web.stackexchange,因为涉及wget机制。

如何将HTTPredirect到AWS Application Load Balancer上的HTTPS?

我们的网站需要符合HIPAA标准,因此所有内容都需要encryption。 我不希望客户端在input“http://mysite.com”时收到错误消息,所以我需要同时支持HTTP和HTTPS,并将HTTPredirect到HTTPS。 我对吗? 我在Web服务器上正确执行了这个操作。 所以如果我直接连接到Web服务器,HTTP会自动redirect到HTTPS。 都好。 但是,Web服务器位于AWS Application Load Balancer之后 。 我不知道如何将HTTPredirect到ELB上的HTTPS。 所以客户端浏览器仍然可以通过HTTP连接到ELB。 如何在AWS应用程序负载平衡器上设置HTTP => HTTPS? 换句话说, 我确定ELB和Web服务器之间的连接是HTTPS,但是如何确保客户端浏览器和ELB之间的连接是HTTPS ?

Nginx重写子文件夹到一个子域,并保持一切

我正在尝试重写url来处理以下情况,我想redirect几个特定的​​子文件夹到一些特定的子域,并保留子文件夹后的任何东西。 到目前为止我有: location / { rewrite ^/sub1/?(.*)$ https://sub1.example.com/$1 permanent; rewrite ^/sub2/?(.*)$ https://sub2.example.com/$1 permanent; rewrite ^/sub3/?(.*)$ https://sub3.example.com/$1 permanent; rewrite ^/sub4/?(.*)$ https://sub4.example.com/$1 permanent; } 这将处理example.com/sub1 example.com/sub1/ example.com/sub1/foobar 但不是example.com/sub1/page.php这是去example.com/sub1/page.php和404的原因它不存在。 我想要 example.com/sub1转到sub1.example.com example.com/sub1/转到sub1.example.com/ example.com/sub1/foobar转到sub1.example.com/foobar example.com/sub1/foo/bar/进入sub1.example.com/foo/bar/ example.com/sub1/page.php转到sub1.example.com/page.php 我在这里错过了什么? 我的正则expression式是生锈的吗? 编辑:这是我的整个configuration为该网站,万一它的一个问题与其他覆盖它的东西。 https://pastebin.com/sEka1Q0e