Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Apache restricts a directory through rewrite

Shulou Source: shulou.com Published: 2022-06-01 09:49:43 11月26日 Update

Vim / usr/local/apache2/conf/extra/httpd-vhosts.conf

Add the following code to the rewrite module

RewriteCond% {REQUEST_URI} ^. * / tmp/.* [NC]

RewiteRule. *-[F]

Tags: Code modules directories restrictions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Apple MySQL Linux Shulou Information