Hi for everyone here,
now originally i have link https://mycompany.com/ where i display for me all the databases that i worked with , now i want that there were specific database client to just give him a link with this specific database and don’t show for him the other databases ,
I have tried this solution, i have added to the original location under sites-available
# Redirect exact match (without slash)
location = /clientdatabase {
return 301 /clientdatabase/;
}
location /clientdatabase/ {
proxy_set_header X-Tryton-Database clientdatabase;
rewrite ^/clientdatabase/(.*)$ /$1 break;
# Pass the usual headers
proxy_pass http://unix:/run/trytond/trytond.sock;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
Me what i want is when i go to https://mycompany.com/ it keeps show me normally all the databases but when i want to go to https://mycompany.com/clientdatabase/ show just the database ‘clientdatabase’ but unfortunately it always how all the databases in both links so what i must do is their any other solution to do ??
*
Thanks in advance