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
# File: mod_jk.conf | |
LoadModule jk_module modules/mod_jk.so | |
JkWorkersFile /etc/httpd/conf/workers.properties | |
<IfModule jk_module> | |
JkMount /*.cfm ajp13 | |
JkMount /*.cfc ajp13 | |
JkMount /*.do ajp13 | |
JkMount /*.jsp ajp13 | |
JkMount /*.cfchart ajp13 |
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
# File: workers.properties | |
worker.list=worker1 | |
worker.worker1.type=ajp13 | |
worker.worker1.host=127.0.0.1 | |
worker.worker1.port=8009 |
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
<servlet-mapping> | |
<servlet-name>CFMLServlet</servlet-name> | |
<url-pattern>*.cfm</url-pattern> | |
<url-pattern>*.cfml</url-pattern> | |
<url-pattern>*.cfc</url-pattern> | |
<!-- Basic SES Mappings --> | |
<url-pattern>/index.cfc/*</url-pattern> | |
<url-pattern>/index.cfm/*</url-pattern> | |
<url-pattern>/index.cfml/*</url-pattern> | |
<url-pattern>/default/index.cfm/*</url-pattern> |
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
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> | |
<Host name="mura" appBase="webapps"> | |
<Context path="" docBase="C:/apache/htdocs/vhosts/mura" /> | |
</Host> |
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
LoadModule proxy_module modules/mod_proxy.so | |
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so | |
LoadModule proxy_connect_module modules/mod_proxy_connect.so | |
LoadModule proxy_html_module modules/mod_proxy_html.so | |
LoadModule proxy_http_module modules/mod_proxy_http.so | |
LoadModule rewrite_module modules/mod_rewrite.so | |
LoadModule setenvif_module modules/mod_setenvif.so | |
LoadModule xml2enc_module modules/mod_xml2enc.so |
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
<VirtualHost *:80> | |
DocumentRoot "C:/apache/htdocs/vhosts/mura" | |
ServerName mura | |
DirectoryIndex index.cfm | |
ProxyPreserveHost On | |
ProxyPassReverse / ajp://mura:8009/ | |
RewriteEngine On |
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
POST http://localhost/users/login HTTP/1.1 | |
Host: localhost:80 | |
Content-Type: application/json;charset=utf-8 | |
{login:'john',password:'1234567'} | |
HTTP/1.1 200 OK | |
Content-Type: application/json;charset=utf-8 |
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
component accessors="true" { | |
property name="SecurityService"; | |
function init(fw){ | |
variables.fw = fw; | |
} | |
function login(rc){ | |
var jsondata = DeserializeJSON(GetHttpRequestData().content); | |
var user = VARIABLES.SecurityService.login(jsondata.login, jsondata.password); |
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
variables.framework = { | |
//define routes | |
routes = [ | |
{ "$GET/users/$" = "/users/list" }, | |
{ "$GET/users/:id/$" = "/users/get/id/:id" }, | |
{ "$POST/users/$" = "/users/create" }, | |
{ "$DELETE/users/:id/$" = "/users/delete/id/:id" } | |
{ "$POST/users/login/$" = "/users/login" }, | |
] | |
// register bean factory |
NewerOlder