duanshan7261 2014-01-19 18:24
浏览 30
已采纳

使用htaccess保护单个URL,但没有SetEnvIf

I'm trying to protect a single url using htaccess password. (it's my admin page)

After some research, I found (on stackoverflow) the solution : use SetEnvIf to detect the URL and then ask password only when we have the URL.

I tested it but that didn't work : the password was asked everytime. After investigation with my host, it seems they are runnig LITESPEED (and not Apache) and the module SetEnvIf is not activated. As a result, I am stuck... Can I do it differently ?

  • 写回答

1条回答 默认 最新

  • douyanti2808 2014-01-19 18:27
    关注

    You can always try doing it manually with PHP. AFAIK no server configuration is necessary.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 请问各位,如何在Jetson nano主控板的Ubuntu系统中安装PyQt5
  • ¥15 MAC安装佳能LBP2900驱动的网盘提取码
  • ¥400 微信停车小程序谁懂的来
  • ¥15 ATAC测序到底用什么peak文件做Diffbind差异分析
  • ¥15 安装ubantu过程中第一个vfat 文件挂载失败
  • ¥20 GZ::CTF如何兼容一些靶机?
  • ¥15 etcd集群部署问题
  • ¥20 谁可以帮我一下问一下各位
  • ¥15 为何重叠加权后love图的SMD与svyCreateTableOne函数绘制基线表的不一致
  • ¥150 求 《小魔指》街机游戏机整合模拟软件