配置闪亮的服务器以指示一次

时间:2015-09-17 05:41:22

标签: php .htaccess shiny shiny-server

我想阻止用户使用直接访问来访问闪亮的应用:

http://www.mywebsite.com:3838/plot/2

我修改了闪亮的配置文件,以便任何直接访问该应用程序的人都会被重定向。

location /plot/2 {
redirect "http://mywebsite.com/index.php?r=site/page&view=check2" 302 true;}

check2.php用于确保尝试直接访问的用户是成员。 Check2还有一个与

相同的iframe src
http://www.mywebsite.com:3838/plot/2

这导致无限重定向循环,因为配置文件重定向/ plot / 2。我希望重定向指令仅在有人试图通过直接访问进行访问时才会发生。我想重定向不适用于check.php中存在的iframe src。我想知道是否有办法

1. Write a statement in php to disable redirect statement for the iframe OR
2. Write a statement in shiny config to apply redirect to certain sources of requests OR
3. Write a statement in htaccess to disable redirects on check.php

非常感谢所有帮助,非常感谢。

0 个答案:

没有答案
相关问题