felipemesturini opened a new issue, #586:
URL: https://github.com/apache/apisix-docker/issues/586

   How can I enable APISIX to work with a ReverseProxy?
   
   Exemple
   
   <VirtualHost *:80>
       ServerName pix.docs.local
       ServerAlias pix.docs.local
   
       ProxyRequests Off
       ProxyPreserveHost On
   
       <IfModule mod_rewrite.c>
           RewriteEngine On
           RewriteCond %{REQUEST_URI} /+[^.]+$
           RewriteCond %{REQUEST_URI} !^(.*)/$
           RewriteRule ^(.*)$ %{REQUEST_URI}/ [R=301,L]
       </IfModule>
   
       ProxyPass /docs/ http://pix.docs.internal:8001/swagger/
       ProxyPassReverse /docs/ http://pix.docs.internal:8001/swagger/
   
       ErrorLog ${APACHE_LOG_DIR}/error.log
       CustomLog ${APACHE_LOG_DIR}/access.log combined
   </VirtualHost>
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to