현재 AppFog에는 두 개의 응용 프로그램이 있습니다.haProxy를 설정하여 Appfog의 여러 응용 프로그램으로 전환
http://sru-forums-prod.aws.af.cm/ 및
http://sru-home-prod.aws.af.cm/ 내가 haProxy 내 컴퓨터에서 로컬로 실행이, 이건 내 현재의 설정 파일입니다. 디버그
글로벌
defaults
mode http
timeout connect 500ms
timeout client 50000ms
timeout server 50000ms
backend legacy
server forums sru-forums-prod.aws.af.cm:80
frontend app *:8232
default_backend legacy
최종 목표는 그 로컬 호스트가 : 8232 SRU - 가정 자극 트래픽 전달, 로컬 호스트 동안 : 8232/포럼/* SRU-포럼 - 자극에 트래픽을 전달합니다. 그러나 나는 간단한 프록시를 설치하여 실행하지도 않는다.
이 구성 파일에서 HAProxy를 실행하면 localhost : 8232에서 AppFog 404를 찾을 수 없습니다.
내가 누락 된 부분은 무엇입니까?
편집 :
새로운 설정 작동하지만 지금은 다시 응답 들어오는 포트 60032을 가지고있다.
global
debug
defaults
mode http
timeout connect 500ms
timeout client 50000ms
timeout server 50000ms
backend legacy
option forwardfor
option httpclose
reqirep ^Host: Host:\ sru-forums-prod.aws.af.cm
server forums sru-forums-prod.aws.af.cm:80
frontend app *:8000
default_backend legacy
HAProxy 규칙 만 사용하면 가능합니까? 위의 설정을 지금 편집하고 있는데 제대로 작동하는 것 같지만 appfog가 올바른 파일을 렌더링하지 못하게하는 이상한 포트가 다시 포함됩니다. 60032 또는 뭔가. –