So I'm using liferay and an apache in docker and want to have the following URL localhost/tester when a user enters this I want headers to be added to their request. I tried to solve this with a simple virtual host
<VirtualHost *:80>
ServerName localhost
<Location /tester>
RequestHeader append tester "true"
Satisfy Any
Allow from all
</Location>
</VirtualHost>
But when I try to navigate to localhost/tester I just get "Resource not found"
Apache is telling you that it doesn't know what content to serve from
http://localhost/tester
. You need to give it aDocumentRoot
, sayand then create a file
tester/index.html
within that. The file can be empty.