Specifying Index in URL as Parameter

Does anyone know if it is possible to specify the index as part of the URL?
This would enable me to use a ProxyPass in Nginx to direct users to the Production log indices or the Development log indices by using something like:


Which would then specify logstash-production-* or logstash-dev-* as the index when redirecting to Kibana

Managed to figure this out in case anyone else wanted to use it.
It's not perfect (still trying to figure out how to have different htaccess files for each URL - so ignore those bits):

location /xxx/? {
set $index 'logstash-xxx*';
set $full (columns:!(_source),index:$index,interval:auto,query:(query_string:(analyze_wildcard:!t,query:'*')),sort:!('@timestamp',desc));
auth_basic "Please Login using a user with permissions for xxx";
auth_basic_user_file /etc/nginx/conf.d/kibana-xxx.htpasswd;
return 301 http://kibana.address.com/#/discover?_g=()&_a=$full;