weird .htaccess problem

Discussion in 'Installation/Configuration' started by manarak, Feb 16, 2024.

  1. manarak

    manarak Member

    I have a standard "perfect server" installation on Ubuntu 20.04

    I installed phpbb 3.3 in a domain's webroot
    and
    installed AWstats in /stats

    the main htaccess rewrite rule at the webroot is
    Code:
    RewriteCond %{REQUEST_URI} !^/stats(/|$)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^(.*)$ app.php [QSA,L]
    
    like this, access to /stats by the browser works fine.

    however, if I try to add basic authentication to the /stats folder, it gets weird and the browser gets redirected to app.php (where Symphony then says no route bla bla) instead of asking for basic auth.
    I have tried doing that both manually and with ISPConfig's "protected folders" functionality.

    what is going on ?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Perhaps doing both has messed the setup?
    I have enabled stats from ISPConfig Panel and set the password there, I have not needed to adjust .htaccess or any other settings.
     
  3. manarak

    manarak Member

    what ispconfig does when you set the password is writing htaccess/htpasswd files.
    but awstats does the same anyway.
    I manually deleted them and put my own, same problem... the problem is somewhere else
     
    Th0m likes this.

Share This Page