Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
October 07, 2016 09:34AM
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 websites please?

Look at your config for the server{} block for website1.

Find the piece that relates to phpmyadmin.

Remove it.


The server{} block is identified by "server_name" including "website1".

You can "find the piece" by looking at the "location" blocks that are
defined, and learning one request that makes use of phpmyadmin, and seeing
which one "location" handles that request -- http://nginx.org/r/location
for details.


If it turns out that you only have one server{} block for all four
websites, then it is probably simplest to copy-and-change it to two
or four different blocks with different "server_name" values, and then
remove the phpmyadmin part from the website1 and website3 block or blocks.

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

mrast October 06, 2016 06:07PM

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

Francis Daly October 07, 2016 09:34AM

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

mrast October 07, 2016 10:20AM

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

Francis Daly October 09, 2016 11:50AM

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

mrast October 09, 2016 12:50PM

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

Francis Daly October 09, 2016 03:42PM

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

mrast October 10, 2016 04:29AM

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

Francis Daly October 10, 2016 12:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 135
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready