2022-10-01 16:20:40
This commit is contained in:
@@ -2,6 +2,8 @@ Diverse reverse proxy conf files
|
|||||||
|
|
||||||
Kopieer ze en zet ze in de /etc/nginx/sites-enabled/
|
Kopieer ze en zet ze in de /etc/nginx/sites-enabled/
|
||||||
|
|
||||||
|
Wel even aanpassen
|
||||||
|
|
||||||
nginx -t
|
nginx -t
|
||||||
|
|
||||||
en dan service nginx restart
|
en dan service nginx restart
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
Adminer is een mysql web based tool
|
||||||
|
|
||||||
|
Wel eerst even downloaden..
|
||||||
|
|
||||||
|
mkdir -p /var/www/html/adminer
|
||||||
|
|
||||||
|
Zet in deze dir de adminer.php en cp hem naar index.php
|
||||||
|
|
||||||
|
Installeer fpm
|
||||||
|
|
||||||
|
apt install php-fpm -y
|
||||||
|
|
||||||
|
Kijk naar welke versie is gedownload
|
||||||
|
|
||||||
|
Deze straks aanpassen in de adminer.conf
|
||||||
|
|
||||||
|
|
||||||
|
Adminer draait op poort 81, je wilt immers niet dat deze op het internet bekend is
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
server {
|
||||||
|
|
||||||
|
# Listen on port 81
|
||||||
|
listen 81;
|
||||||
|
listen [::]:81;
|
||||||
|
|
||||||
|
# Server name being used (exact name, wildcards or regular expression)
|
||||||
|
server_name eenmaampje;
|
||||||
|
|
||||||
|
root /var/www/html/adminer;
|
||||||
|
|
||||||
|
# Logging
|
||||||
|
error_log /var/log/nginx/adminer.access_log;
|
||||||
|
access_log /var/log/nginx/adminer.error_log;
|
||||||
|
|
||||||
|
|
||||||
|
location / {
|
||||||
|
index index.php adminer.php;
|
||||||
|
}
|
||||||
|
|
||||||
|
## Images and static content is treated different
|
||||||
|
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
|
||||||
|
access_log off;
|
||||||
|
expires 360d;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /\.ht {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /(libraries|setup/frames|setup/libs) {
|
||||||
|
deny all;
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Pass the PHP scripts to FastCGI server
|
||||||
|
location ~ \.php$ {
|
||||||
|
|
||||||
|
#fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
|
||||||
|
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/html/adminer$fastcgi_script_name;
|
||||||
|
fastcgi_param HTTPS off;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user