You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Richard0706 (via GitHub)" <gi...@apache.org> on 2024/10/15 10:04:18 UTC

[I] help request: How to use nginx's internal attributes [apisix]

Richard0706 opened a new issue, #11652:
URL: https://github.com/apache/apisix/issues/11652

   ### Description
   
   How to use nginx's internal attributes,For example:
   ```
   location /mytest/ {
       internal;
       root  /opt/html/mytest/;
   }
   ```
   In the demo above, attributes  'internal' is used. How do I use them in apisix? Do I need to enable a plugin?
   
   ### Environment
   
   - APISIX version (run `apisix version`):3.2 LTS
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: How to use nginx's internal attributes [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop closed issue #11652: help request: How to use nginx's internal attributes
URL: https://github.com/apache/apisix/issues/11652


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: How to use nginx's internal attributes [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #11652:
URL: https://github.com/apache/apisix/issues/11652#issuecomment-2879146731

   If there is still a problem, please open it again.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: How to use nginx's internal attributes [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #11652:
URL: https://github.com/apache/apisix/issues/11652#issuecomment-2879146357

   APISIX allows adding custom Nginx configuration via `http_server_location_configuration_snippet` or `http_end_configuration_snippet` configuration options.
   
   To add an internal location configuration similar to the one in the example (with the internal directive), you need to modify the APISIX configuration file `conf/config.yaml` and add something like this:
   
   ```
   nginx_config:
     http_end_configuration_snippet: |
       location /mytest/ {
         internal;
         root /opt/html/mytest/;
       }
   ```
   
   After modifying the configuration, you need to restart the APISIX service to apply the changes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org