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

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

 



Thanks.
I commented that line and got below error:

# apachectl configtest
[Sun Mar 14 22:51:10.267664 2021] [so:warn] [pid 813720:tid 139038944315712] AH01574: module deflate_module is already loaded, skipping
AH00526: Syntax error on line 1 of /etc/httpd/conf.d/tor-ip.conf:
<RequireAll not allowed here

In httpd.conf file, I have below lines that start with "Include" word:

# cat conf/httpd.conf | grep "Include"
Include conf.modules.d/*.conf
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    # (You will also need to add "Includes" to the "Options" directive.)
IncludeOptional conf.d/*.conf






On Sunday, March 14, 2021, 10:20:43 PM GMT+3:30, Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> wrote: 





Le 14/03/2021 à 17:23, Jason Long a écrit :
> Yes:
> 
> <Directory "/var/www/wp">
> Options -Indexes
> AllowOverride All
> Require all granted
> Include conf.d/tor-ip.conf
> </Directory>
> 
> 
That is not my point.

How your conf files are loaded (the one for your vh, ...)?

Sometimes the "main" conf file includes all conf file from a directory.
That is what I mean by:
      Include conf.d/*.conf

If such a directive exists, your tor-ip.conf would also be included, but 
not in a <Directory> directive.
This could trigger your issue.

As Daniel proposed, if you comment "Include conf.d/tor-ip.conf", it 
would be interesting to see if you still have the issue.

CJ

> 
> 
> 
> 
> 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


---------------------------------------------------------------------
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