Hi misc, 

Am trying to add HTTP Basic auth to an specific location in httpd.conf (a1).
Is it possible?

The other locations I want to mantain unprotected.



usually can be done to the entire site with:

        authenticate "HTTP Basic" with "/htdocs/dev/.htpasswd"


but for specific files, dunno how

httpd.conf:

        location "/API/v1/a1" {
          fastcgi socket "/run/php-fpm.sock"
        }

        location "/API/v1/a2" {
          fastcgi socket "/run/php-fpm.sock"
        }

        location "/API/v1/a3" {
          fastcgi socket "/run/php-fpm.sock"
        }

Regards, 

Fabio

Reply via email to