Sponsor-Board.de
Apache Konfig

+- Sponsor-Board.de (https://www.sponsor-board.de)
+-- Forum: Community (/forumdisplay.php?fid=56)
+--- Forum: Hilfe (/forumdisplay.php?fid=102)
+---- Forum: Linux-Server (/forumdisplay.php?fid=105)
+---- Thema: Apache Konfig (/showthread.php?tid=28828)


Apache Konfig - Nicolas | CN - 13.08.2012 16:34

Hallo,
ich möchte folgendes machen:

Wenn ich in meinen Browser meine IP:9999 eingebe soll er das Verzeichnis /var/www/froxlor öffnen soll.
Ich habe in der Datei /etc/apache2/sites-available/default folgendes eingetragen:
<VirtualHost *:9999>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/froxlor
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/froxlor>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

In der Ports.conf steht aktuell noch das

# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>

Was muss ich da eintragen?
Danke für die Hilfe
Gruß Nicolas


RE: Apache Konfig - KoKsPfLaNzE - 13.08.2012 16:59

Bin mir net ganz sicher aber solltest du net listen dann auch auf 9999 setzen?


RE: Apache Konfig - IaMmE - 13.08.2012 17:02

KoKsPfLaNzE schrieb:
Bin mir net ganz sicher aber solltest du net listen dann auch auf 9999 setzen?


Wen er das macht, läuft Apache auf Port 9999 Smile


RE: Apache Konfig - Nicolas | CN - 13.08.2012 17:04

Ich will weiterhin über den Port 80 auf das Verzeichnis /var/www Zugreifen können


RE: Apache Konfig - Nicolas | CN - 13.08.2012 17:15

@cooding muss ja was in der Ports.conf eintragen oder ?


RE: Apache Konfig - happyhopp - 13.08.2012 17:20

Dann 2 mal Listen. Bei Apache2 mit https Support, lässt man den Server ja auch lauschen auf Port 80 und 443 gleichzeitig.

Listen 80
Listen 443

als in Deinem Fall vermutlich

Listen 80
Listen 9999

Mit Listen gibst Du an, welche Ports der Apache2 alle überwachen soll, auf ankommende Anfragen. Und wie oben schon geschrieben wurde, nach Änderungen an der Config, neustart bzw. config neu einlesen mit reload.


RE: Apache Konfig - Nicolas | CN - 13.08.2012 17:23

Vielen Dank an happyhopp
Hat funktioniert
Thema kann geschlossen Werden