Below is a piece of my Apache2 configuration.
In the main root is taken a fancy dir that allows me to have a graphical appearance a little nicer, the code is all in the fancy-index folder and is executed with the .htaccess file.
The configuration allows me to access my Apache service via browser, and when I click on the Oreo or Private folders, it closes my password.
Unfortunately, as you can see in the first part of the configuration, there is AllowOverride none that does not allow me to execute the .htaccess file.
Can you help me understand how I can execute the .htaccess file in the presence of AllowOverride none?
<Directory /mnt/Synology-Zipped/>
Options Indexes FollowSymLinks MultiViews
IndexOptions +ShowForbidden
AllowOverride none
Order allow,deny
Allow from all
</Directory>
<Directory /mnt/Synology-Zipped/tmp/>
Options Indexes MultiViews FollowSymLinks
Require all denied
AuthType Basic
AuthName "Please enter your credentials to continue."
AuthUserFile /var/auth/.htpasswd
#Require valid-user
Order deny,allow
Deny from all
Allow from 192.168.1.0/24
Satisfy any
#AllowOverride all
AllowOverride None
Require user me myself
</Directory>
<Directory /mnt/Synology-Zipped/Private/>
AuthType Basic
AuthName "Private"
AuthUserFile /var/auth/.htpasswd2
AllowOverride none
Require valid-user
</Directory>
<Directory /mnt/Synology-Zipped/Oreo/>
AuthType Basic
AuthName "Please enter your credentials to continue."
AuthUserFile /var/auth/.htpasswd2
Require valid-user
AllowOverride all
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory />
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
AccessFileName: The name of the file to look for in each directory
for additional configuration directives. See also the AllowOverride
directive.
AccessFileName .htaccess

AllowOverrideis to choose which directives can be overridden in an.htaccessfile. Any reason you can't update theAllowOverrideto another value? Can you explain a bit more about your setup? Also, what do you mean by "closes my password"? Do you mean it's prompting for a password? – Dan Jun 30 '25 at 08:52