简体   繁体   English

每个文件都需要OS X Server 5网站密码

[英]OS X Server 5 website password required for every file

Since upgrading/updating my OS X Server to 5 (now on 5.0.4) my website configuration is off. 自从将OS X Server升级/更新到5(现在是5.0.4)以来,我的网站配置已关闭。 I have managed to get my website working again, the only thing that is wonky is the password protection. 我设法使我的网站重新正常工作,唯一的问题是密码保护。

My issue in TLDR: When my site is password protected using the OS X Server functionality, it requires a password for every single image and file on the site. TLDR中的问题:使用OS X Server功能对我的网站进行密码保护时,该网站上的每个图像和文件都需要一个密码。 Previously entering the password once was enough to access the entire site. 以前输入一次密码就足以访问整个站点。 I want that again. 我再次想要。

My site is in the default folder. 我的网站在默认文件夹中。 I want it to be entirely password protected through Apache itself (not something I build/implement). 我希望它完全通过Apache本身受密码保护(而不是由我构建/实现的东西)。

Through OS X Server, settings for the default site (no SSL) I have set Who Can Access to "A Specific Group" and the group to my only configured group. 通过OS X Server,设置了默认站点(无SSL),我将“谁可以访问”设置为“特定组”,并将该组设置为我唯一配置的组。 When I access the site, it ask for the password, but asks for it for every single file (with the message that my password was incorrect). 当我访问该站点时,它会要求输入密码,但要求为每个文件输入密码(并提示我密码不正确)。

The only change in the .conf file I can see is the addition of rewrite rules. 我可以看到.conf文件中的唯一变化是添加了重写规则。 Removing them does not seem to solve my issue. 删除它们似乎无法解决我的问题。

How can I configure my site using OS X Server or the Apache .conf file to ask for my password only once when entering the site and then use it for my entire session? 如何使用OS X Server或Apache .conf文件配置网站,使其在进入网站时仅要求输入一次密码,然后在整个会话中使用该密码?

For extra information, the password works the same whether accessing locally through the IP or over the web (IP or URL). 有关其他信息,无论是通过IP本地访问还是通过Web(IP或URL)访问,密码都具有相同的作用。 OS X Server always says my site is not accessible over the internet, even though it is. OS X Server总是说我的站点无法通过Internet访问,即使可以访问。

My configuration file: 我的配置文件:

<VirtualHost 127.0.0.1:34580>
ServerAdmin admin@example.com
DocumentRoot "/Library/Server/Web/Data/Sites/Default"
DirectoryIndex index.html index.php default.html
CustomLog "/var/log/apache2/access_log" combinedvhost env=!forwarded
CustomLog "/var/log/apache2/access_log" combinedvhostproxy env=forwarded
ErrorLog "/var/log/apache2/error_log"
<IfModule mod_ssl.c>
    SSLEngine Off
    SSLCipherSuite "ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM"
    SSLProtocol -ALL +TLSv1
    SSLProxyEngine On
    SSLProxyProtocol -ALL +TLSv1
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
</IfModule>
<Directory "/Library/Server/Web/Data/Sites/Default">
    Options All -Indexes -ExecCGI -Includes +MultiViews
    AllowOverride None
    <IfModule mod_dav.c>
        DAV Off
    </IfModule>
    <IfDefine !WEBSERVICE_ON>
        Require all denied
        ErrorDocument 403 /customerror/websitesoff403.html
    </IfDefine>
    RewriteEngine on
    RewriteCond %{HTTP:X-FORWARDED-FOR} !^$
    RewriteCond %{REQUEST_METHOD} !^(PROPFIND|OPTIONS)$
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.*)([^/])$ %{HTTP:X-FORWARDED-PROTO}://%{SERVER_NAME}/$1$2/ [R=301,L,NC]
    AuthType Digest
    AuthName "Realm ID 05011761"
    <Limit PUT DELETE PROPPATCH PROPFIND MKCOL COPY MOVE LOCK UNLOCK>
      Require no-user
    </Limit>
    <Limit GET HEAD OPTIONS CONNECT POST>
      Require group familieraap
    </Limit>
    <IfDefine !WEBSERVICE_ON>
        Require all denied
        ErrorDocument 403 /customerror/websitesoff403.html
    </IfDefine>
</Directory>
ServerAlias my.sitealias.nl

try to change this: 尝试更改此:

AuthType Digest to AuthType Basic AuthType摘要到AuthType基本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM