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.jail...@wanadoo.fr> 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-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