Попытка исключить состояние сервера из файла конфигурации виртуального хоста Apache. Но моя попытка, похоже, не работает.
ОС: Centos 7.6
Apache: 2.4.6.45
Запись виртуального хоста
###################
# Rewrite Conf #
###################
RewriteEngine on
#RewriteLog /var/log/httpd/rewrite_log_unsecure
#RewriteLogLevel 5
# Security Rewrite - disable TRACK and TRACE request methods
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* https://touch.mysite.co.za/500_error.html [L,R]
RewriteCond %{REQUEST_METHOD} ^TRACK
RewriteRule .* https://touch.mysite.co.za/500_error.html [L,R]
# Redirect all traffic to secure site
RewriteCond %{REQUEST_URI} !^/videos/.*
RewriteCond %{REQUEST_URI} !^/server-status/.*
RewriteCond %{HTTPS} !on
RewriteRule ^/(.*) https://touch.mysite.co.za/$1 [L,R]
# Allow server status
#RewriteCond %{REQUEST_URI} !^/server-status
RewriteCond %{REQUEST_URI} !=/server-status
Ноя получаю следующую ошибку
curl 127.0.0.1/server-status?auto
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://touch.mysite.co.za/server-status?auto">here</a>.</p>
</body></html>
Любой совет будет высоко ценится