Re: [users@httpd] Simulating rewrite rules?

2024-07-09 Thread mwood
On Tue, Jul 09, 2024 at 01:10:34PM +, Dave Wreski wrote: > Instead of making changes to my rules then having to wait until the condition > is met (Googlebot scans the site again), I'd like to simulate the above > request against my ruleset to see if it matches. Is this possible? curl --user-

Re: [users@httpd] Simulating rewrite rules?

2024-07-09 Thread Frank Gingras
On Tue, Jul 9, 2024 at 9:11 AM Dave Wreski wrote: > Hi, I have the following rewrite rule in place on one of our staging sites > to redirect bots and malicious scripts to our corporate page: > > RewriteCond %{HTTP_USER_AGENT} > ^$ [OR

[users@httpd] Simulating rewrite rules?

2024-07-09 Thread Dave Wreski
Hi, I have the following rewrite rule in place on one of our staging sites to redirect bots and malicious scripts to our corporate page:   RewriteCond %{HTTP_USER_AGENT} ^$ [OR]   RewriteCond %{HTTP_USER_AGENT} ^.*(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR]   RewriteCond %{HTTP_USER_AGENT} ^.*(H

[users@httpd] Is it safe to use the 'UnsafeAllow3F' flag?

2024-07-09 Thread Valentin Rusev
Hi, Few days ago the 'UnsafeAllow3F' flag was introduced: https://httpd.apache.org/security/vulnerabilities_24.html After the update, we have started to have a lot of 403 due to the encoded '?' in the urls passed as query parameters. To fix the problem we have started to stop encoding the '?' in

[users@httpd] example of apache/node/nextjs -- reverse proxy setup

2024-07-09 Thread bruce
Hi. Trying to work my way through setting up/testing a scenario with nextjs where it uses Apache as a reverse proxy to serve the test files. Looking through a number of sites, but thought I'd ask the list as well. If anyone has set up this kind of situation, or has pointers to examples, I'd like