Created
June 1, 2020 20:55
-
-
Save branflake2267/c173dd94ae5dfa114a9e1998f1d8afe9 to your computer and use it in GitHub Desktop.
Sencha Cmd Reverse Proxy Servlet [project]/WEB-INF/web.xml, sencha app watch -j
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app | |
xmlns="http://java.sun.com/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" | |
metadata-complete="true" | |
version="2.5"> | |
<!-- Cmd CLI Reverse HTTP Proxy Configuration --> | |
<!-- Run sencha app watch -j --> | |
<!-- http://localhost:1841/api/test.json --> | |
<!-- http://localhost:8080/api/test.html --> | |
<!-- http://localhost:8080/api/test.json --> | |
<servlet> | |
<servlet-name>transparentReverseProxy</servlet-name> | |
<servlet-class>org.eclipse.jetty.servlets.ProxyServlet$Transparent</servlet-class> | |
<init-param> | |
<param-name>ProxyTo</param-name> | |
<param-value>http://localhost:8080/api</param-value> | |
</init-param> | |
<init-param> | |
<param-name>HostHeader</param-name> | |
<param-value>localhost</param-value> | |
</init-param> | |
<init-param> | |
<param-name>Prefix</param-name> | |
<param-value>/api</param-value> | |
</init-param> | |
<load-on-startup>1</load-on-startup> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>transparentReverseProxy</servlet-name> | |
<url-pattern>/api/*</url-pattern> | |
</servlet-mapping> | |
</web-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment