Re: Re: httpd[803535]: <RequireAll not allowed here

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux