hi there,

I can't get it around my head how this should work if different locations have diffrent index files.

so I have a config like so:


server "domain.tld" {
        alias "*.domain.tld"

        listen on $ext_addr tls port https

        log error "domain_ssl_error"
        log access "domain_ssl_access"

        tls {
            certificate "/etc/ssl/web/domain.fullchain.pem"
            key "/etc/ssl/web/keys/domain.key"
        }

        root "/htdocs/domain.tld"
        directory { index index.html }

        location "/admin/*" {
            directory { index index.php }
            fastcgi socket "/run/php-fpm.sock"

            authenticate with "../domain_passwd"
        }

        directory { index index.html }

        location "*.php" {
           fastcgi socket "/run/php-fpm.sock"
        }

}

So this makes the site browsable and it works with the php scripts. So now I expect that when I request https://domain.tld/admin/ I would get the index.php loaded after I authenticated but I get a 404
On the other hand https://domain.tld/admin/index.php works fine.

Since the rules get evaluated top to bottom and stoping at first match I should work because the second directory statement seems to work just fine and it gets evaluated after the first location statement.

but well even the authenticate statement is, just in my opinion, wrong on so many lvls and it also works ...

could someone that is more skilled in httpd.conf give me some insight here?

regards

--
Markus Rosjat    fon: +49 351 8107223    mail: ros...@ghweb.de

G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden

http://www.ghweb.de
fon: +49 351 8107220   fax: +49 351 8107227

Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before you print it, think about your responsibility and commitment to the ENVIRONMENT

Reply via email to