I'm unable to configure HAProxy to enable history location url.
App.Router.map(function() {
this.resource('user', { path: '/user/:user_id' }); });
App.Router.reopen({
location: 'history' , rootURL:'/' });
HAProxy config backend home_srvs mode http option httpclose option httplog reqrep ^GET\ /user/[0-9]+\ HTTP/1.1 GET\ /\ HTTP/1.1 balance roundrobin server web1 localhost:8080 check
when I browse to http://localhost/user/1, I see the following in haproxy log
Mar 31 16:03:52 localhost haproxy[6761]: 127.0.0.1:42907 [31/Mar/2015:16:03:52.332] frontend home_srvs/web1 1/0/0/6/9 304 153 - - ---- 5/5/0/0/0 0/0 "GET /user/1 HTTP/1.1" Mar 31 16:03:52 localhost haproxy[6761]: 127.0.0.1:42908 [31/Mar/2015:16:03:52.332] frontend home_srvs/web1 22/0/0/28/53 404 361 - - ---- 6/6/5/5/0 0/0 "GET /user/css/bootstrap.css HTTP/1.1" Mar 31 16:03:52 localhost haproxy[6761]: 127.0.0.1:42911 [31/Mar/2015:16:03:52.332] frontend home_srvs/web1 24/0/0/34/76 404 353 - - ---- 5/5/5/5/0 0/0 "GET /user/js/app.js HTTP/1.1" Mar 31 16:03:52 localhost haproxy[6761]: 127.0.0.1:42910 [31/Mar/2015:16:03:52.332] frontend home_srvs/web1 24/0/0/53/79 404 360 - - ---- 4/4/4/4/0 0/0 "GET /user/js/libs/ember.js HTTP/1.1" Mar 31 16:03:52 localhost haproxy[6761]: 127.0.0.1:42909 [31/Mar/2015:16:03:52.332] frontend home_srvs/web1 24/0/0/51/84 404 368 - - CD-- 3/3/3/3/0 0/0 "GET /user/js/libs/jquery-1.10.2.js HTTP/1.1" Mar 31 16:03:52 localhost haproxy[6761]: 127.0.0.1:42912 [31/Mar/2015:16:03:52.333] frontend home_srvs/web1 23/0/1/48/85 404 361 - - CD-- 2/2/2/2/0 0/0 "GET /user/css/normalize.css HTTP/1.1" Mar 31 16:03:52 localhost haproxy[6761]: 127.0.0.1:42921 [31/Mar/2015:16:03:52.385] frontend home_srvs/web1 6/0/0/24/34 404 372 - - ---- 1/1/1/1/0 0/0 "GET /user/js/libs/handlebars-v1.3.0.js HTTP/1.1" Mar 31 16:03:52 localhost haproxy[6761]: 127.0.0.1:42915 [31/Mar/2015:16:03:52.355] frontend home_srvs/web1 1/0/0/64/66 404 357 - - ---- 0/0/0/0/0 0/0 "GET /user/css/style.css HTTP/1.1" Mar 31 16:03:52 localhost haproxy[6761]: 127.0.0.1:42923 [31/Mar/2015:16:03:52.452] frontend home_srvs/web1 0/0/0/6/6 304 153 - - ---- 0/0/0/0/0 0/0 "GET /favicon.ico HTTP/1.1"
What am I doing wrong? I've tried multiple things already. Thanks
Aucun commentaire:
Enregistrer un commentaire