5

Hallo ich habe eine ec2-Instanz bei Amazon, die auf normalen 80-Port läuft und ich habe einen Knoten auf 3002-Port wie kann ich meinen Knoten auf Port 80 in meiner Amazon ec2-Instanz laufen zusammen mit Apache habe ich versucht, die meisten Online-Tutorials wie Reverse Proxy mod Proxy usw. auf apacheWie Knoten und Apache in Amazon ec2 zusammen laufen?

ich brauche mein Knoten-Server auf www.mywebsite.com/node jetzt seinen Betrieb auf www.mywebsite.com:3002/

i laufen versucht, meine

zu bearbeiten

/etc/httpd/conf/httpd.conf

Von Apache wie Belo w hatte aber keinerlei Auswirkungen

<VirtualHost *:80> 

ProxyRequests off 

<Proxy *> 
    Order deny,allow 
    Allow from all 
</Proxy> 

<Location /> 
    ProxyPass /node http://localhost:3002/ 
    ProxyPassReverse /node http://localhost:3002/ 
</Location> 
</VirtualHost> 
+1

Warum brauchen Sie beide auf dem gleichen Port ausgeführt werden, d. H. Port 8080 –

+0

In meinem College alle anderen Ports als Port 80 oder 8080 blockiert ist, so muss ich beide darin ausführen –

Antwort

1

habe ich jetzt nicht Apache für Alter verwendet, aber ich denke, dass Ihr Standort für mod_proxy aussehen würde:

<Location /node > 
    ProxyPass http://localhost:3002/ 
</Location> 

Außerdem haben Sie neu gestartet Apache?

service httpd restart sollte es tun.