1
1つのディレクトリ(/ dist)へのパブリックアクセスのみを提供したい。.htaccessで1つのディレクトリへのアクセスのみを許可する
Order deny,allow
Deny from all
<Directory /dist>
Order Allow,Deny
Allow from all
</Directory>
私はその後、/ distディレクトリのための許可ルールとそのディレクティブoverwirte、最初にすべてのアクセスを拒否しようとしている:私は、次のと.htaccessファイルがあります。しかし、ブラウザからファイルにアクセスしようとすると、次のようになります。
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
私は間違っていますか?
.htaccessで 'Directory'指示文を使用できません – anubhava