mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-11-14 22:21:32 +01:00
29 lines
695 B
Plaintext
29 lines
695 B
Plaintext
#include /etc/nginx/conf.d/sub/cache-proxy.conf;
|
|
|
|
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;
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri =404;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass phpmyadmin_server;
|
|
fastcgi_index index.php;
|
|
}
|
|
|
|
# resolver 8.8.8.8;
|
|
}
|