Nginx Basic Auth和子文件夹(Nginx Basic Auth and subfolders)
我在基本的auth procted文件夹中遇到了子文件夹的问题。 在受保护的文件夹中,我有一个名为phpmyadmin的文件夹,其中包含phpmyadmin。 当基本激活时,我无法运行phpmyadmin。 当我调用该文件夹时,我得到一个另存为对话框(类型:application / octet-stream(18,3 KB))。
这里是mysites的重要部分 - 可用/默认
location ^~ /administration/ { auth_basic "Restricted Area"; auth_basic_user_file /var/www/myproject/sec/htpasswd; } location ~ \.php$ { fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; }
任何想法,我如何在基本身份验证保护子文件夹中运行php?
I have a problem with subfolders in a basic auth procted folder. In the protected folder i have a folder named phpmyadmin, which contains phpmyadmin. Im not able to run phpmyadmin, when basic is activated. Whenn i call the the folder, i get a save-as dialog (type: application/octet-stream (18,3 KB)).
Here the important parts of mysites-available/default
location ^~ /administration/ { auth_basic "Restricted Area"; auth_basic_user_file /var/www/myproject/sec/htpasswd; } location ~ \.php$ { fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; }
Any ideas, how i can run php in basic-auth protected subfolders?
原文:https://stackoverflow.com/questions/16779131
最满意答案
本书 - 编程语言:应用和解释可能是一个很好的起点,尤其是第十二章“领域特定语言和元编程”。 它使用PLT Scheme代码示例,整本书值得一读。
The book - Programming Languages: Application and Interpretation might be a good place to start, especially chapter XII "Domain-Specific Languages and Metaprogramming". It uses PLT Scheme for the code samples, and the entire book is a worthy read.
相关问答
更多-
TCP/IP模型是一个________。[2023-10-02]
a -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
PLT-Scheme学习参考(PLT-Scheme learning reference)[2022-10-08]
不,我不这么认为。 另外唯一一本印刷版权专业书籍(AFAIK)是出色的“PLT Redex语义工程” ,但我不认为这就是您要找的。 你也可能对Krishnamurthi的编程语言:应用和解释感兴趣。 这些都是针对编程语言的人。 HTH No, I don't believe so. The only other PLT-specific book that's in print right know (AFAIK) is the excellent "Semantics Engineering with P ... -
@plt是什么意思?(What does @plt mean here?)[2023-10-09]
这是一种获取代码修复(根据代码位于虚拟内存中的位置调整地址)的方式,而无需为每个进程维护单独的代码副本。 PLT是程序联动表,使动态加载和链接更容易使用的结构之一。 printf@plt实际上是一个小的存根(最终)调用真正的printf函数。 这个真正的功能可以被映射到给定进程(虚拟地址空间)中的任何位置,以及调用它的代码。 因此,为了允许调用代码的正确代码共享(左下方),您不想直接应用任何fixup,因为这将限制其他进程中的位置。 在运行时可靠地计算的地址上, PLT是一个较小的进程特定区域, 不是在进程 ... -
GTK / Qt PLT计划(GTK/Qt On PLT Scheme)[2022-04-06]
Linux版本的PLT基于来自wxWindows的旧分支(从它重命名为wxWidgets之前)。 有一些工作正在最终用Scheme代码替换所有C和C ++代码,并且还从原始X后端移动到使用gtk。 在此之前(可能需要一段时间),最好的办法是坚持使用通常的基于mred的代码; 这样,当切换完成后它将继续正常工作 - 并且您仍然保持可移植性的优势(因为它在Windows和OS X上的行为也相同)。 The Linux version of PLT is based on an old fork from wxW ... -
在GCC printf和puts是内置函数。 这意味着编译器完全了解它们的语义。 在这种情况下,如果编译器认为它会生成更好(更快和/或更紧凑)的代码,那么编译器可以自由地将调用替换为对另一个函数的调用。 因为它不需要解析和解释格式字符串,所以puts是一个更高效的函数。 这正是你所遇到的情况。 你第一次调用printf并不需要任何printf特有的功能。 您提供给printf的格式字符串很简单:它没有转换说明符。 编译器认为你对printf的第一次调用最好是与printf相同的调用。 同时,你对printf ...
-
为什么除了GOT之外还存在PLT,而不仅仅是使用GOT?(Why does the PLT exist in addition to the GOT, instead of just using the GOT?)[2022-08-02]
问题是用call [printf@GOTPLT]替换call printf@PLT要求编译器知道函数printf存在于共享库中而不是静态库(甚至只是普通的目标文件中)。 链接器可以将call printf更改为call printf@PLT ,将jmp printf更改为jmp printf@PLT ,甚至可以将mov eax, printf更改为mov eax, printf@PLT因为它所做的就是将基于符号printf重定位更改为基于重定位的重定位符号printf@PLT 。 链接器无法将call pr ... -
如果你想使用和的函数形式and ( or它们不会短路的限制)并且不丢失变量arity属性,那么你可以很容易地这样做: (define (and* . xs) (andmap values xs)) (define (or* . xs) (ormap values xs)) ( values是(PLT)Scheme中的惯用标识函数。) If you want to use a function form of and and or (with the limitation that they will n ...
-
本书 - 编程语言:应用和解释可能是一个很好的起点,尤其是第十二章“领域特定语言和元编程”。 它使用PLT Scheme代码示例,整本书值得一读。 The book - Programming Languages: Application and Interpretation might be a good place to start, especially chapter XII "Domain-Specific Languages and Metaprogramming". It uses PLT S ...
-
您可以使用require-library从标准库加载东西: http://download.plt-scheme.org/doc/103p1/html/mzscheme/node157.htm (require-library "spidey.ss") 您还可以使用支持工具(加载和朋友)来加载单个文件。 您需要使用绝对路径,否则它将相对于您当前的工作目录进行搜索。 http://download.plt-scheme.org/doc/103p1/html/mzscheme/node149.htm (loa ...