Reverse Proxy für NodeJS API
Reverse Proxy für NodeJS API
ich habe folgendes Anliegen und ich hoffe im richtigen Teil des Forums zu sein.
Ich habe mir nun KeyHelp direkt auf meinen Debian 12 Server installiert.
Komme soweit auch damit ohne Probleme klar. Nun möchte ich das meine NodeJS APIs via Reverse Proxy öffentlich sind und nicht nur via IP:PORT.
Wie mache ich dies am besten?
Hoffe ihr könnt mir helfen.
LG
- Jolinar
- Community Moderator
- Posts: 4004
- Joined: Sat 30. Jan 2016, 07:11
- Location: Weimar (Thüringen)
- Contact:
Re: Reverse Proxy für NodeJS API
Gewünschte Subdomain im Panel anlegen, dort im Tab "Apache Einstellungen" die entsprechende Proxykonfiguration eintragen, zB.:
Code: Select all
ProxyPass /api http://127.0.0.1:3000/
ProxyPassReverse /api http://127.0.0.1:3000/
und schon sollte es flutschen.
Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
- In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
In this color, I write as a moderator and provide moderative guidance or justify moderative interventions - In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
In this color, I write as a community member and share my personal opinions and views
Re: Reverse Proxy für NodeJS API
Code: Select all
a2enmod proxy_http
Florian Cheno
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: Reverse Proxy für NodeJS API
