# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress 我将身份validation添加到“/ pb”目录中,并且我正在redirect。 有什么办法,我可以添加一个例外这个重写规则,以便不访问/ pb时重写? 谢谢!!
尝试使用Apache设置基本的HTTP身份validation,但它不起作用。 我定期得到目录列表和文件,不需要validation。 我尝试重新启动httpd和浏览器caching。 我在/ var / log / httpd / error_log中找不到任何相关条目。 有任何想法吗? htpasswd的: # htpasswd -c /usr/local/share/passwords username $ ls -l /usr/local/share/passwords -rw-r–r– 1 root root 44 Nov 23 13:29 /usr/local/share/passwords 的.htaccess: $ cat /srv/http/test/.htaccess AuthType Basic AuthName "Some Stuff" AuthUserFile /usr/local/share/passwords Require user username 目录: $ ls -la /srv/http/test/ total 16 drwxr-xr-x 2 root […]
我有一些用户在一个LDAP目录,我想有一个普通或htpasswd文件中的其他用户可以login,虽然与LDAP服务器的连接不可用。 lighttpd中的同一主机是否可以拥有多个身份validation后端?
我使用.htaccess,基本身份validation和相应的密码文件来保护我的networking空间。 托pipe是Linux / Apache。 我想支持用法语口音(即不是ASCII)的用户名。 是否支持非ASCII用户名? 密码文件应该使用什么编码(UTF8,Latin-1,…)?
我有一个htpasswd文件,工作正常 – 在我的htaccess我有: <Limit GET POST> require valid-user </Limit> 哪个工作,login/ passwd显示正常,当你到达网站的根源。 然而,我需要限制这个,所以login/ passwd只会出现在用户达到例如http://mywebsite.com/appear/here/* – 所以基本上当用户达到/appear/here/*它应该显示。 。 我看了可以用htpasswd来限制访问一个URL而不是一个特定的文件夹? – 但似乎无法弄清楚.. 试过: <Files /appear/here/*> require valid-user </Files> <Directory /appear/here/*> require valid-user </Directory>
我想在我的网站上密码目录/rutorrent 。 在那个目录下,我创build了这个.htaccess文件: AuthUserFile /home/whitey/sites/localhost/.htpasswd AuthName "Login to use rutorrent" AuthType Basic require valid-user 然后我在/home/whitey/sites/localhost/有一个.htpasswd文件: whitey:f9kK77E4scRcI 我已经使用在线.htpasswd生成器生成密码。 我重新启动了Apache,但是当我进入/rutorrent目录时,系统没有提示input密码。 在错误日志中也没有显示出来。
我如何设置htpasswd提示给所有想访问局域网(192.168.0.*)人以外的服务器? 感谢您的答案!
我想密码保护一个目录。 我在Centos上用cPanel运行Apache 2。 为了这篇文章,目录是/home/user/my-secret-dir 我使用cPanel的“密码保护目录”来创buildlogin信息,它存储在一个新的/home/user/.htpasswds/my-secret-dir/passwd文件中。 它没有做的是在任何地方创buildAuthTypeconfiguration – 我可以简单地访问目录没有提示(它只是得到了一个通用的index.html,而我得到这个工作)。 所以我创build了/home/user/my-secret-dir/.htaccess自己,内容如下: AuthType Basic AuthName "My Secret Directory" AuthUserFile "/home/user/.htpasswds/my-secret-dir/passwd" require valid-user 现在这会导致浏览器提示inputlogin信息,但input正确的用户名和密码后,就会显示错误,然后重新提示input详细信息。 我input的细节绝对正确。 我以前在同一台服务器上设置了一个密码保护的目录(虽然对于不同的帐户/域),并且工作正常(仍然有效),我已经比较了两者,看不到任何显着的差异。 任何想法可能会导致连续的提示,我该如何解决?
在开发服务器上,我安装了Jenkins工具进行自动化testing。 这在端口8080上运行。如果我去www.mysite.com:8080我可以看到这个命令面板。 我想通过使用Apache的密码保护它使外部世界无法访问。 (我的服务器运行Ubuntu 12.04 LTS)。 我阅读了以下页面以获得一般build议,特别是关于安全性的主题,他们提出了以下设置: <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/opt/apache/httpd/htdocs" ServerName jenkins.yourdomain.com ErrorLog "logs/jenkins-error_log" ProxyPass /jenkins/ ajp://127.0.0.1:8102/jenkins/ ProxyPassReverse /jenkins/ ajp://127.0.0.1:8102/jenkins/ <Location /> Order allow,deny Allow from all </Location> <Location /jenkins/> AuthType basic AuthName "jenkins" AuthUserFile "/opt/apache/httpd/conf/.htpasswd" </Location> </VirtualHost> 我的Apache文件目前有以下设置: <VirtualHost *:80> # Admin email, Server Name (domain name), and any aliases ServerAdmin […]
我正在尝试密码保护与Apache的Web目录。 我有这样的网站设置: D:/ webapp/ lib/ .htpasswd document_root/ admin/ index.php .htaccess .htaccess有: AuthName "Authorization Required" AuthType Basic AuthUserFile D:\webapp\lib\.htpasswd require valid-user 而且.htpasswd有: user:passworddigest 当我尝试在浏览器中访问localhost/index.php ,出现500错误。 Apache的错误日志有这样的: ["date"] [crit] [client "ip"] configuration error: couldn't check user. Check your authn provider!: /admin/ 我GOOGLE了,但我无法弄清楚这个错误在我的服务器上下文意味着什么。 任何人都知道这是怎么回事 此外,它会解决我的问题,如果有人有一个简单的方法使用Apache的身份validation在Windows服务器上的Web目录。