Created
February 11, 2021 14:34
-
-
Save panique/e75a793b17ed4e781b6681a94e6600d0 to your computer and use it in GitHub Desktop.
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
# this is an INCOMPLETE nginx config file, the lines below just show the lines you | |
# have to add to your normal nginx config file (usually /etc/nginx/sites-available/default | |
# and /etc/nginx/sites-enabled/default) to make Adminer work. | |
# | |
# 1. place adminer.php into the base folder of your application (where also your index.php is) | |
# 2. add this to the nginx config file | |
# 3. check if syntax is correct: sudo nginx -t | |
# 4. restart nginx to see the changes: sudo service nginx restart | |
# 5. use adminer by adding /adminer to you base domain/IP like http://192.168.33.66/adminer | |
# | |
server { | |
# ... | |
location = /adminer { | |
try_files $uri $uri/ /adminer.php?$args; | |
} | |
# ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment