Azure Linux에서 프라이빗 포트 3000을 대상으로 하는 공용 포트 80

Azure Linux에서 프라이빗 포트 3000을 대상으로 하는 공용 포트 80

다음 주소에서 완벽하게 작동하는 Azure Linux(Ubuntu 14.04)에 Ruby on Rails 웹 사이트가 있습니다.

http://mydomain.cloudapp.net:3000

주소의 포트를 제거하고 내가 가지고 있는 하위 도메인으로 리디렉션하고 싶습니다. 000-default.conf아래와 같이 Apache를 설정했습니다 .

<VirtualHost *:80>
    ServerName myweb.example.com
    DocumentRoot /var/www/html/mywebsite
    ProxyPass / http://localhost:3000/
    ProxyPassReverse / http://localhost:3000/
</VirtualHost>

Apache2를 다시 시작했습니다. 내 도메인 관리자에서 에서 myweb.example.com까지 의 CNAME을 만들었습니다 mydomain.cloudapp.net.

그런데 들어가보니 http://myweb.example.com500 내부 서버 오류가 뜹니다. 와 함께 작동합니다 http://myweb.example.com:3000. 내가 도대체 ​​뭘 잘못하고있는 겁니까?

편집하다:액세스 시도 후 error_log 정보http://myweb.example.com

[Sun Aug 23 16:02:40.634116 2015] [proxy:warn] [pid 3189:tid 140710588688128] [c
lient 92.251.128.56:52583] AH01144: No protocol handler was valid for the URL /.
 If you are using a DSO version of mod_proxy, make sure the proxy submodules are
 included in the configuration using LoadModule.

답변1

로드만 하면 될 것 같습니다 mod_proxy_http.

관련 정보