mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
phpmyadmin was never migrated to nginx
This commit is contained in:
parent
45dbfaaa2b
commit
83a848e105
6 changed files with 29 additions and 27 deletions
|
@ -26,4 +26,6 @@ $cfg['DefaultLang'] = 'en';
|
|||
$cfg['ServerDefault'] = 1;
|
||||
$cfg['UploadDir'] = '';
|
||||
$cfg['SaveDir'] = '';
|
||||
?>
|
||||
$cfg['Servers'][$i]['auth_type'] = 'http';
|
||||
?>
|
||||
|
||||
|
|
3
roles/phpmyadmin/templates/mkuser
Normal file
3
roles/phpmyadmin/templates/mkuser
Normal file
|
@ -0,0 +1,3 @@
|
|||
CREATE USER 'Admin'@'localhost' IDENTIFIED BY 'changeme';
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'Admin'@'localhost' WITH GRANT OPTION;
|
||||
FLUSH PRIVILEGES;
|
15
roles/phpmyadmin/templates/phpmyadmin.conf.j2
Normal file
15
roles/phpmyadmin/templates/phpmyadmin.conf.j2
Normal file
|
@ -0,0 +1,15 @@
|
|||
location ~ ^/phpmyadmin/(.*)\.php{
|
||||
alias /opt/phpmyadmin/$1.php;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
fastcgi_pass php;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
location /phpmyadmin/{
|
||||
root /opt/;
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
Alias /phpmyadmin /opt/phpmyadmin
|
||||
<Directory /opt/phpmyadmin>
|
||||
AllowOverride all
|
||||
require all granted
|
||||
</Directory>
|
Loading…
Add table
Add a link
Reference in a new issue