Last active
January 17, 2021 19:55
-
-
Save ozzpy/aadc8f164acf2d833f037ee8cb18a5d8 to your computer and use it in GitHub Desktop.
nginx-phpmyadmin.local
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| listen [::]:80; | |
| root /var/www/phpmyadmin; | |
| index index.php index.html index.htm; | |
| server_name phpmyadmin.local; | |
| location / { | |
| try_files $uri $uri/ =404; | |
| if (!-f $request_filename) { | |
| rewrite ^(.*)$ /index.php last; | |
| } | |
| } | |
| location ~ \.php$ { | |
| include snippets/fastcgi-php.conf; | |
| fastcgi_pass unix:/run/php/php7.4-fpm.sock; | |
| } | |
| # access_log /home/${OZZPY_DOMAIN}/logs/access.log; | |
| # error_log /home/${OZZPY_DOMAIN}/logs/error.log; | |
| location ~ /\.ht { | |
| deny all; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment