32 lines
934 B
Plaintext
32 lines
934 B
Plaintext
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /var/www/html;
|
|
index index.php index.html index.htm;
|
|
client_max_body_size 1G;
|
|
|
|
location / {
|
|
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)(/.+)$;
|
|
fastcgi_pass wordpress:9000;
|
|
fastcgi_index index.php;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
}
|
|
} |