Hi,
I am having a hard time getting even basic functionality working so heaven help me when I have to try convert my actual sites..
I am migrating my ubuntu server from apache to nginx.. The first thing I have tried to do is get phpmyadmin working the same as it was in Apache..
In Apache I accessed it by http://localhost/adminmysql (ssh port mapping to localhost:80)..
First I tried this (not restricting to localhost just trying to get it to run)..
location /admin-mysql {
alias /usr/share/phpmyadmin/;
}
This worked for serving static files but wouldn't run php at all..
So I changed to a symlink in /usr/share/nginx/www from adminmysql->/usr/sharw/phpmyadmin
This worked to run phpmyadmin (Half way there!)..
Then I tried to implement restricting it to 127.0.0.1 using the following..
location /admin-mysql {
index index.php;
allow 127.0.0.1;
deny all;
}
This blocks the images and .html files but the php still runs so phpmyadmin still shows..
Don't know why such simple things are proving to be so complicated..
Please can someone help and point our where and why I am going wrong..
Thanks..