2017-11-29 1 views
0

AJP 용 ProxyPass 중에 "Host"헤더 내용을 설정하는 방법을 알아 내려고하고 있습니다.Apache AJP, ProxyPass : 호스트 헤더를 설정하는 방법

여기 HTTP 내 작업의 conf이다 : 바람둥이에

<VirtualHost *:80> 
    ProxyRequests off 
    ProxyPreserveHost off 

    ServerName my-external-domain 

    ErrorLog /var/log/httpd/error.log 
    CustomLog /var/log/httpd/access.log combined 

    # Possible values include: debug, info, notice, warn, error, crit, 
    # alert, emerg. 
    LogLevel error 

    <Location /> 
     ProxyPass http://my-internal-tomcat:8080/ 
     ProxyPassReverse http://my-internal-tomcat:8080/ 
     Order allow,deny 
     Allow from all 
    </Location> 

</VirtualHost> 

, 감지 된 서버 이름은 내-내부 바람둥이 (내가 원하는 행동)입니다. 서버 이름이 검출에의 conf와

<VirtualHost *:80> 
    ProxyRequests off 
    ProxyPreserveHost off 

    ServerName my-external-domain 

    ErrorLog /var/log/httpd/error.log 
    CustomLog /var/log/httpd/access.log combined 

    # Possible values include: debug, info, notice, warn, error, crit, 
    # alert, emerg. 
    LogLevel error 

    <Location /> 
     ProxyPass ajp://my-internal-tomcat:8009/ 
     ProxyPassReverse ajp://my-internal-tomcat:8009/ 
     Order allow,deny 
     Allow from all 
    </Location> 

</VirtualHost> 

당신이 어떤 생각 이유가 있나요 내-내부 바람둥이

,되지 않습니다

여기 AJP 내 두 번째 conf의 무엇입니까?

답변

0

내 대답이 잘못되었을 수 있습니다. 그렇지 않을 경우 수정하십시오.

당신은 단순히 AJP로 그렇게 할 수 없습니다.

관련 문제