I’m running a LAMP system (on a Pi) and I get a lot of mischievous requests which seem to result in a 302 status code, like:
140.143.16.158 – – [06/Mar/2020:18:32:32 +0100] “GET /TP/public/index.php HTTP/1.1” 302 540 “-” “Mozilla/5.0 (Windows; U; Windows NT 6.0;en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6)”
As I understand it, my Apache webserver indicates a temporary redirect. But where does it redirect to? I just don’t know how my webserver handles this (correctly ??) and I don’t know where or what to check .. Can somebody explain?
Whatever is needed to solve this question will be provided. For instance, here’s my 000-default.conf (comments left out):
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine On
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
And in my actual vhost I have these:
Redirect 301 /.well-known/carddav /something something
Redirect 301 /.well-known/caldav /something something
Redirect 301 /.well-known/webfinger /something something
Any help will be much appreciated!