My dev server (Debian 8.5) has
DirectorySlash Off in the conf file for a site, and it works - no trailing slash added, and no redirect on requests for an existing directory.
The same directive is in the conf file for the same site on the test server (Ubuntu 16.04) but it has no effect - Apache keeps stubbornly adding the slash and redirecting.
/etc/apache2/sites-available/site1.conf looks like this on both servers:
<VirtualHost *:8080> # ... ServerAdmin webmaster@localhost DocumentRoot /srv/www/site1 DirectorySlash Off
How can I stop the redirect?
Edit: OOps it was silly, had to clear cache per w3dk (who's helped me 2x today :) Solved.