Re: Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-10 Thread Francis Daly
On Mon, Oct 10, 2016 at 04:29:27AM -0400, mrast wrote: Hi there, > there were symlinks in website1.com and website3.com roots public > directories for phpmyadmin - symlinked to /usr/share/phpmyadmin. It's good that you found an answer that works for you. > > if ($http_cookie ~* £PHPSESSID"){ >

Re: Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-10 Thread mrast
Hi Francis, Wow, this gets stranger..who have cracked it for mebut i have no idea how or why it got there! there were symlinks in website1.com and website3.com roots public directories for phpmyadmin - symlinked to /usr/share/phpmyadmin. I never noticed them though as they didnt appear a

Re: Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-09 Thread Francis Daly
On Sun, Oct 09, 2016 at 12:50:50PM -0400, mrast wrote: Hi there, > I have no problem sharing the config files - ill just sanitize the actual > websites. But everything else is 100% as is. Thanks for this - it does give more information about what is happening. A few notes, with the order switch

Re: Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-09 Thread mrast
Hi Francis, Its a brand new server setup. I have no problem sharing the config files - ill just sanitize the actual websites. But everything else is 100% as is. Here is the full nginx.conf file from /etc/nginx cat /etc/nginx/nginx.conf user www-data; worker_processes 1; worker_rlimit_nofile 10

Re: Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-09 Thread Francis Daly
On Fri, Oct 07, 2016 at 10:20:51AM -0400, mrast wrote: Hi there, There are many ways that you might have configured things. Only you know the one way that you have configured things. Until you share that, there is not much that others can do. > If i remove the /phpmyadmin section from website1 c

Re: Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-07 Thread mrast
Hello Francis, Thankyou for your reply. I have seperate config files for each website in /etc/nginx/sites-enabled and have removed the default file I have this directive in /etc/nginx/nginx.conf ## # Virtual Host Configs ## include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*;

Re: Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-07 Thread Francis Daly
On Thu, Oct 06, 2016 at 06:07:51PM -0400, mrast wrote: Hi there, > I have installed phpmyadmin and configured it and it works fine, however it > serves all 4 websites. > > website1 and website3 do not need access to phpmyadmin. > > How do i tell Nginx to only load phpmyadmin for certian website

Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-06 Thread mrast
I have an ubuntu 16.04 server running LEMP with 4 websites on it website.com website1.com website2.com website3.com I have installed phpmyadmin and configured it and it works fine, however it serves all 4 websites. website1 and website3 do not need access to phpmyadmin. How do i tell Nginx to o