2022-11-24 20:17:35 +01:00
|
|
|
#include /etc/nginx/conf.d/sub/cache-proxy.conf;
|
2022-11-24 13:32:59 +01:00
|
|
|
|
|
|
|
upstream phpmyadmin_server {
|
|
|
|
# ip_hash;
|
|
|
|
server phpmyadmin:80;
|
|
|
|
# server phpmyadmin:80 weight=1 max_fails=3 fail_timeout=30s;
|
|
|
|
}
|
|
|
|
|
|
|
|
# PHPmyadmin
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
#listen 443;
|
|
|
|
#listen [::]:443;
|
|
|
|
|
|
|
|
server_name phpmyadmin.bensuperpc.org www.phpmyadmin.bensuperpc.org;
|
|
|
|
|
|
|
|
include /etc/nginx/conf.d/sub/gzip.conf;
|
|
|
|
|
2023-04-16 00:43:35 +02:00
|
|
|
location ~ \.php$ {
|
|
|
|
try_files $uri =404;
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_pass phpmyadmin_server;
|
|
|
|
fastcgi_index index.php;
|
2022-11-24 13:32:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# resolver 8.8.8.8;
|
|
|
|
}
|