I have enabled basic auth from dispatcher for our dev and stage server.
But its not caching content when basic auth is enabled.
If I disable basic auth then it works. For basic auth I have added following code on dispatcher
<Directory "${PUBLISH_DOCROOT}">
<If "req('Host') =~ /(dev|stage)\.example\.com/">
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/httpd/.htpasswd
Require valid-user
</If>
<Else>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Else>
</Directory>
Solved! Go to Solution.
Views
Replies
Total Likes
Did you check the below configuration is enable in your publish instance
(http://localhost:4503/system/console/configMgr/org.apache.sling.engine.impl.auth.SlingAuthenticator)
Its not the path I have chosen. and yes the configuration is enabled on publish.
Hi,
You need to enable caching when Auth header is present
Can you validate you response headers for authorisation and that perticular header is enable for caching or not in your dispatcher.any file.
Hope this helps
Umesh Thakur
can you please explain more or provide a sample code ?
Views
Like
Replies
Views
Likes
Replies