PMA nginx conf
This commit is contained in:
20
conf/pmaapache.conf
Normal file
20
conf/pmaapache.conf
Normal file
@ -0,0 +1,20 @@
|
||||
Listen 8080
|
||||
|
||||
<VirtualHost *:8080>
|
||||
|
||||
ServerName localhost
|
||||
|
||||
<Directory /usr/share/phpmyadmin>
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
DocumentRoot /usr/share/phpmyadmin
|
||||
|
||||
Include /etc/phpmyadmin/apache.conf
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/phpmyadmin.error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/phpmyadmin.access.log combined
|
||||
|
||||
|
||||
</VirtualHost>
|
17
conf/pmanginx.conf
Normal file
17
conf/pmanginx.conf
Normal file
@ -0,0 +1,17 @@
|
||||
server {
|
||||
listen 8080;
|
||||
listen [::]:8080;
|
||||
server_name localhost;
|
||||
access_log /var/log/nginx/phpmyadmin.vhost.access.log;
|
||||
error_log /var/log/nginx/phpmyadmin.vhost.error.log;
|
||||
root /usr/share/phpmyadmin;
|
||||
index index.php;
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user