We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36785
    • 4 Posts
    Dear MODX'ers,

    I have read about the use of unauthorized_page, and this seems to work for me for protected resources (it's set to the main page, just like error_page). However, it appears it does not catch the 403.14 'Directory listing denied' situations. E.g., when I try to access http://www.mydomain.com/assets/ I get a plain old 'Directory Listing Denied, This Virtual Directory does not allow contents to be listed.' error. Is this the way things are supposed to be? Or am I doing something wrong?

    Thanks!
    Jeroen
      • 22303 MODX Staff
      • 10,725 Posts
      Because assets/ is a physical directory on the server, the rewrite rules do not handle the request. Instead, your web server does. You could modify the rewrite conditions to get around this, but I'm not sure it is worth the hassle.
        • 36785
        • 4 Posts
        Thanks, that was what I suspected already. I don't think I can be bothered messing around with the rewrite rules for this indeed.

        Cheers,
        Jeroen