Was you meant "https://httpd.apache.org/docs/2.4/howto/access.html" ? The syntax is same!
On Sunday, March 14, 2021, 05:40:48 PM GMT+3:30, Nick Folino <n...@folino.us> wrote: You really need to spend some time reading the documentation. You'll learn a lot more that way. On Sun, Mar 14, 2021 at 10:00 AM Jason Long <hack3r...@yahoo.com.invalid> wrote: > Hello, > I want to block Tor IP addresses and I downloaded a list of Tor IP addresses > and put it as a "tor-ip.conf" file under the "/etc/httpd/conf.d/" directory. > Then edited my Virtual Host configuration file as below: > > <Directory "/var/www/wp"> > Options -Indexes > AllowOverride All > Require all granted > Include conf.d/tor-ip.conf > </Directory> > > The "tor-ip.conf" file content is: > > <RequireAll> > Require all granted > Require not ip "IP" > Require not ip "IP" > Require not ip "IP" > ... > </RequireAll> > > When I restarted my Apache service, then it shows me below error: > > Status: "Reading configuration..." > > Mar 14 17:16:12 mywebsite systemd[1]: Starting The Apache HTTP Server... > Mar 14 17:16:12 mywebsite httpd[803535]: [Sun Mar 14 17:16:12.662030 2021] > [so:warn] [pid 803535:tid 132707859921216]> > Mar 14 17:16:12 mywebsite httpd[803535]: AH00526: Syntax error on line 1 of > /etc/httpd/conf.d/tor-ip.conf: > Mar 14 17:16:12 mywebsite httpd[803535]: <RequireAll not allowed here > Mar 14 17:16:12 mywebsite systemd[1]: httpd.service: Main process exited, > code=exited, status=1/FAILURE > Mar 14 17:16:12 mywebsite systemd[1]: httpd.service: Failed with result > 'exit-code'. > Mar 14 17:16:12 mywebsite systemd[1]: Failed to start The Apache HTTP Server. > > > What is the correct syntax? > > Thank you. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org