
Ich habe eine Ruby on Rails-Website auf Azure Linux (Ubuntu 14.04), die von dieser Adresse aus einwandfrei funktioniert:
http://mydomain.cloudapp.net:3000
Ich möchte den Port aus der Adresse entfernen und sie auf eine Subdomain umleiten, die ich habe. Ich habe es 000-default.conf
auf Apache wie folgt eingerichtet:
<VirtualHost *:80>
ServerName myweb.example.com
DocumentRoot /var/www/html/mywebsite
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>
Ich habe Apache2 neu gestartet. Auf meinem Domänenmanager habe ich einen CNAME von myweb.example.com
nach erstellt mydomain.cloudapp.net
.
Wenn ich jedoch eingebe, http://myweb.example.com
erhalte ich den internen Serverfehler 500. Es funktioniert mit http://myweb.example.com:3000
. Was mache ich falsch?
BEARBEITEN:error_log Informationen nach dem Zugriffsversuchhttp://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.
Antwort1
Sieht aus, als müssten Sie nur laden mod_proxy_http
.