Skip to content

Instantly share code, notes, and snippets.

@panique
Created February 11, 2021 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panique/e75a793b17ed4e781b6681a94e6600d0 to your computer and use it in GitHub Desktop.
Save panique/e75a793b17ed4e781b6681a94e6600d0 to your computer and use it in GitHub Desktop.
# 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