34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
server {
|
|
listen 80;
|
|
server_name phpmyadmin.sp.renatorosa.com phpmyadmin.cloud.renatorosa.com;
|
|
|
|
access_log /var/log/nginx/phpmyadmin_access.log;
|
|
error_log /var/log/nginx/phpmyadmin_error.log;
|
|
|
|
root /usr/share/phpmyadmin;
|
|
index index.php;
|
|
|
|
location / {
|
|
try_files $uri $uri/ @phpmyadmin;
|
|
}
|
|
|
|
location @phpmyadmin {
|
|
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
|
# If nginx running on TCP socket, comment line above and uncomment line beneath
|
|
#fastcgi_pass 127.0.0.1:9000;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin/index.php;
|
|
fastcgi_param SCRIPT_NAME /index.php;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
|
# If nginx running on TCP socket, comment line above and uncomment line beneath
|
|
#fastcgi_pass 127.0.0.1:9000;
|
|
include fastcgi_params;
|
|
fastcgi_index index.php;
|
|
fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;
|
|
}
|
|
}
|
|
|