Wie Apache an localhost:80 binden, aber 443 auch extern ?
Hallo, Ich möchte den httpd nur an localhost:80 binden. Ein existierender virtual host für ssl-Verbindungen soll aber weiterhin "nach aussen lauschen". Der Parameter "Listen" in httpd.conf ist leider nur für zusätzliche IP / Ports brauchbar. MfG Benn -- #250319 - http://counter.li.org
Hi, soll so gehen "port 443" für ssl und danach "listen <IP Adresse> 80" Tom
On Wed, Feb 20, 2002 at 11:29:31PM +0100, Thomas Michael Wanka wrote:
Hi,
soll so gehen "port 443" für ssl und danach "listen <IP Adresse> 80"
Danke - funktioniert jetzt mein Fehler: hatte in Section 1: Global Environment probiert unter 'Section 2: Main Server..... # Port: The port to which the standalone server listens. For # ports < 1023, you will need httpd to be run as root initially. # Port 80 ## ## SSL Support ## ## When we also provide SSL we have to listen to the ## standard HTTP port (see above) and to the HTTPS port ## <IfDefine SSL> Listen localhost:80 <---hier localhost ergänzt Listen 443 </IfDefine>
Tom
MfG Benn -- #250319 - http://counter.li.org
On Wed, Feb 20, 2002 at 11:29:31PM +0100, Thomas Michael Wanka wrote:
Hi,
soll so gehen "port 443" für ssl und danach "listen <IP Adresse> 80"
Irgend etwas ging gerade schief - hoffe ich poste jetzt nicht zweimal Also, Danke - funktioniert jetzt Fehler waren Versuche in Section1 der httpd.conf Mit Folgendem in #Section2: 'Main' server configuration gehts. # Port: The port to which the standalone server listens. For # ports < 1023, you will need httpd to be run as root initially. # Port 80 ## ## SSL Support ## ## When we also provide SSL we have to listen to the ## standard HTTP port (see above) and to the HTTPS port ## <IfDefine SSL> Listen localhost:80 <----- hier localhost ergänzt Listen 443 </IfDefine>
Tom
MfG Benn -- #250319 - http://counter.li.org
Bernd Schmelter schrieb am Wed, Feb 20, 2002 at 10:52:47PM +0100:
Ich möchte den httpd nur an localhost:80 binden. Ein existierender virtual host für ssl-Verbindungen soll aber weiterhin "nach aussen lauschen".
Der Parameter "Listen" in httpd.conf ist leider nur für zusätzliche IP / Ports brauchbar.
IMO kannst Du alle Parameter aus dem "normalen" Teil der httpd.conf auch innerhalb einer <virtual host>-Umgebung benutzen. Es sollte also möglich sein, den Virtual Host auf das externe Interface und Port 443 zu binden, während der httpd auf dem internen Interface auf Port 80 lauscht. hth, Christian -- Christian Schmidt | Germany | christian@siebenbergen.de No HTML Mails, please!!
participants (3)
-
Bernd Schmelter
-
Christian Schmidt
-
Thomas Michael Wanka