-
-
Save jzuijlek/576f7826f353a76af689 to your computer and use it in GitHub Desktop.
This file contains 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="ISO-8859-1"?> | |
<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"> | |
<!-- ********************************************************************* --> | |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
<!-- Railo Servlet Definitions (Servlet Spec. Version 2.5 or greater req.) --> | |
<!-- ===================================================================== --> | |
<!-- Railo CFML Servlet - this is the main Railo servlet --> | |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
<servlet id="Railo"> | |
<description>Railo CFML Engine</description> | |
<servlet-name>CFMLServlet</servlet-name> | |
<servlet-class>railo.loader.servlet.CFMLServlet</servlet-class> | |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
<!-- to specify the location of the Railo Server config and libraries, --> | |
<!-- uncomment the init-param below. make sure that the param-value --> | |
<!-- points to a valid folder, and that the process that runs Railo has --> | |
<!-- write permissions to that folder. leave commented for defaults. --> | |
<!-- | |
<init-param> | |
<param-name>railo-server-directory</param-name> | |
<param-value>/var/Railo/config/server/</param-value> | |
<description>Railo Server configuration directory (for Server-wide configurations, settings, and libraries)</description> | |
</init-param> | |
!--> | |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
<!-- to specify the location of the Web Contexts' config and libraries, --> | |
<!-- uncomment the init-param below. make sure that the param-value --> | |
<!-- points to a valid folder, and that the process that runs Railo has --> | |
<!-- write permissions to that folder. the {web-context-label} can be --> | |
<!-- set in Railo Server Admin homepage. leave commented for defaults. --> | |
<!-- | |
<init-param> | |
<param-name>railo-web-directory</param-name> | |
<param-value>/var/Railo/config/web/{web-context-label}/</param-value> | |
<description>Railo Web Directory (for Website-specific configurations, settings, and libraries)</description> | |
</init-param> | |
!--> | |
<load-on-startup>1</load-on-startup> | |
</servlet> | |
<!-- URL ReWriter --> | |
<filter> | |
<filter-name>UrlRewriteFilter</filter-name> | |
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> | |
<!-- set the amount of seconds the conf file will be checked for reload | |
can be a valid integer (0 denotes check every time, | |
empty/not set denotes no reload check) --> | |
<init-param> | |
<param-name>confReloadCheckInterval</param-name> | |
<param-value>0</param-value> | |
</init-param> | |
<!-- you can disable status page if desired | |
can be: true, false (default true) --> | |
<init-param> | |
<param-name>statusEnabled</param-name> | |
<param-value>true</param-value> | |
</init-param> | |
<init-param> | |
<param-name>logLevel</param-name> | |
<param-value>WARNING</param-value> | |
</init-param> | |
<init-param> | |
<param-name>statusEnabledOnHosts</param-name> | |
<param-value>localhost</param-value> | |
</init-param> | |
</filter> | |
<filter-mapping> | |
<filter-name>UrlRewriteFilter</filter-name> | |
<url-pattern>/*</url-pattern> | |
<dispatcher>REQUEST</dispatcher> | |
<dispatcher>FORWARD</dispatcher> | |
</filter-mapping> | |
<!-- end url rewrite --> | |
<servlet-mapping> | |
<servlet-name>CFMLServlet</servlet-name> | |
<url-pattern>*.cfc</url-pattern> | |
<url-pattern>*.cfm</url-pattern> | |
<url-pattern>*.cfml</url-pattern> | |
<url-pattern>/index.cfc/*</url-pattern> | |
<url-pattern>/index.cfm/*</url-pattern> | |
<url-pattern>/index.cfml/*</url-pattern> | |
<!-- url-pattern>*.cfm/*</url-pattern !--> | |
<!-- url-pattern>*.cfml/*</url-pattern !--> | |
<!-- url-pattern>*.cfc/*</url-pattern !--> | |
<!-- url-pattern>*.htm</url-pattern !--> | |
<!-- url-pattern>*.jsp</url-pattern !--> | |
</servlet-mapping> | |
<!-- ===================================================================== --> | |
<!-- Railo REST Servlet - handles Railo's RESTful web services --> | |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
<servlet id="RESTServlet"> | |
<description>Railo Servlet for RESTful services</description> | |
<servlet-name>RESTServlet</servlet-name> | |
<servlet-class>railo.loader.servlet.RestServlet</servlet-class> | |
<load-on-startup>2</load-on-startup> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>RESTServlet</servlet-name> | |
<url-pattern>/rest/*</url-pattern> | |
</servlet-mapping> | |
<!-- ===================================================================== --> | |
<!-- Railo MessageBroker Servlet - Flex Gateway --> | |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
<!-- * ATTENTION - ATENCION - ACHTUNG - ATTENTION - ATENCION - ACHTUNG * --> | |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
<!-- messageBrokerId must be unique for each defintion of the MessageBroker--> | |
<!-- Servlet. if you use the MessageBroker Servlet and define it in more --> | |
<!-- than one xml file, you must uncomment the messageBrokerId init-param --> | |
<!-- and set a different value in each definition. --> | |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
<servlet id="MessageBrokerServlet"> | |
<description>Railo Servlet for Flex Gateway</description> | |
<servlet-name>MessageBrokerServlet</servlet-name> | |
<servlet-class>flex.messaging.MessageBrokerServlet</servlet-class> | |
<!-- init-param> | |
<param-name>services.configuration.file</param-name> | |
<param-value>/WEB-INF/flex/services-config.xml</param-value> | |
</init-param !--> | |
<!-- init-param> | |
<param-name>messageBrokerId</param-name> | |
<param-value>_default_</param-value> | |
</init-param !--> | |
<!-- load-on-startup>2</load-on-startup !--> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>MessageBrokerServlet</servlet-name> | |
<url-pattern>/flex2gateway/*</url-pattern> | |
<url-pattern>/flashservices/gateway/*</url-pattern> | |
<url-pattern>/messagebroker/*</url-pattern> | |
</servlet-mapping> | |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
<!-- Railo Definitions End --> | |
<!-- ===================================================================== --> | |
<!-- _____________________________________________________________________ --> | |
<!-- default file to execute if directory is called with no file name, e.g. http://mysite.com/ !--> | |
<welcome-file-list> | |
<welcome-file>index.cfm</welcome-file> | |
<welcome-file>index.cfml</welcome-file> | |
<welcome-file>index.html</welcome-file> | |
<welcome-file>index.htm</welcome-file> | |
<welcome-file>index.jsp</welcome-file> | |
</welcome-file-list> | |
</web-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment