DIR: /etc/nginx/sites-enabled/ |
Current File : //etc/nginx/sites-enabled/phpmyadmin |
server { if ($host = db.lapieza.do) { return 301 https://$host$request_uri; } # managed by Certbot listen 80; server_name db.lapieza.do; root /usr/share/phpmyadmin; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; # Adjust PHP version if different } location ~ /\.ht { deny all; } } |