add nginx with phpMyAdmin

This commit is contained in:
2022-12-04 03:42:24 +01:00
parent c0e6f9aac5
commit 63107790b3
6 changed files with 233 additions and 7 deletions
+30
View File
@@ -0,0 +1,30 @@
server {
listen 80;
listen [::]:80;
root /var/www/phpmyadmin/;
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
access_log /var/log/nginx/phpmyadmin_access.log;
error_log /var/log/nginx/phpmyadmin_error.log;
location / {
try_files $uri $uri/ /index.php;
}
location ~ ^/(doc|sql|setup)/ {
deny all;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include snippets/fastcgi-php.conf;
}
location ~ /\.ht {
deny all;
}
}