To rule out a bug I would try without the Include first, all directives in the directory tag and see if you get some different error. El dom, 14 mar 2021 a las 17:23, Jason Long (<hack3rcon@xxxxxxxxx.invalid>) escribió: > > Yes: > > <Directory "/var/www/wp"> > Options -Indexes > AllowOverride All > Require all granted > Include conf.d/tor-ip.conf > </Directory> > > > > > > > On Sunday, March 14, 2021, 07:04:15 PM GMT+3:30, Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> wrote: > > > > > > Le 14/03/2021 à 14:59, Jason Long a écrit : > > > 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. > > > > > How are loaded your conf files? > > Something like: > Include conf.d/*.conf > somewhere? > > CJ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > -- Daniel Ferradal HTTPD Project #httpd help at Freenode --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx