gitflow-feature-stash: auth-fmanage
parent
34a813cc5b
commit
e7028b491a
|
@ -1,2 +1,3 @@
|
|||
FROM nginx:alpine
|
||||
COPY default.conf /etc/nginx/conf.d
|
||||
COPY default.conf /etc/nginx/conf.d
|
||||
COPY .htpasswd /var/www/.htpasswd
|
11
default.conf
11
default.conf
|
@ -9,6 +9,17 @@ server {
|
|||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
location ~ /fmanage\.php$ {
|
||||
auth_basic "Restricted Area";
|
||||
auth_basic_user_file /var/www/.htpasswd;
|
||||
try_files $uri =404;
|
||||
fastcgi_pass wordpress:9000;
|
||||
fastcgi_index fmanage.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri = 404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
|
|
Loading…
Reference in New Issue