Created
May 10, 2015 00:39
-
-
Save ronsuez/2ed69301c5a7d2558af5 to your computer and use it in GitHub Desktop.
Nginx phpmyadmin.conf file
This file contains 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 443; | |
ssl on; | |
ssl_certificate /etc/nginx/ssl/server.crt; | |
ssl_certificate_key /etc/nginx/ssl/server.key; | |
server_name phpmyadmin.example.loc; | |
root /var/www/vhosts/pma/; | |
index index.php; | |
# set expiration of assets to MAX for caching | |
location ~* \.(ico|css|js)(\?[0-9]+)?$ { | |
expires max; | |
log_not_found off; | |
} | |
location ~* \.php$ { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_split_path_info ^(.+\.php)(.*)$; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
} | |
-Make sure to put you root path | |
-Make sure YOU HAVE CREATED the config file of phpmyadmin | |
-if you don't want https just change the port to 80 and remove the ssl part | |
ssl on; | |
sslcertificate /etc/nginx/ssl/server.crt; | |
sslcertificate_key /etc/nginx/ssl/server.key; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment