# Is it possible to add new location directive inside kong proxy server block?

**URL:** https://discuss.konghq.com/t/is-it-possible-to-add-new-location-directive-inside-kong-proxy-server-block/10374
**Category:** General
**Tags:** kong-gateway
**Created:** [July 12, 2022, 8:46am UTC](https://discuss.konghq.com/t/is-it-possible-to-add-new-location-directive-inside-kong-proxy-server-block/10374 "2022-07-12T08:46:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![AshayFernandes](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/ashayfernandes/32/2659_2.png) [@AshayFernandes](https://discuss.konghq.com/u/AshayFernandes)
#### Post date: [July 12, 2022, 8:46am UTC](https://discuss.konghq.com/t/is-it-possible-to-add-new-location-directive-inside-kong-proxy-server-block/10374/1 "2022-07-12T08:46:18Z")

</div>

I have an use-case where for a particular request with path say /test-abc, i want the request to go to S3 rather than kong and all requests with path other than /test-abc should flow to kong gateway. I tried adding the location block in nginx-kong.conf as below, But I don’t see requests going to s3. Can someone please help me understand what I’m missing here?

One observation I have is that, when I add a return directive inside /test-abc location the requests are reaching corrects location block(/test-abc) but with proxy\_pass it is actually going to location block- (/)

```auto
# Kong's Proxy server block
  server {
    server_name kong;

    # any contents until the location / block
    ...

    location / {
      
      ...
    }

    location /test-abc {
        proxy_pass <s3-url-here>
        add_header 'content-type' 'application/json';
        add_header 'cache-control' 'public, max-age=0';
        add_header 'vary' 'Accept-Encoding';
        add_header 'accept-ranges' 'bytes';
        charset UTF-8;
        default_type application/json;
    }
  }

```
