ich frage mich gerade, wieso OwnCloud bei mir erreichbar ist. Hier mal meine Konfiguration:
Code: Alles auswählen
# cat /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName raspi
ServerAdmin webmaster@localhost
DocumentRoot /var/www/atarixle.de
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
und
Code: Alles auswählen
# cat /etc/apache2/sites-enabled/001-raspi.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName raspi
ServerAlias localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/~atarixle
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
Dass ich intern das Intranet geliefert bekomme und extern (sowie intern über raspi.fritz.box) die Webseite, klappt super. Die virtuellen Hosts funktionieren also.
Meine Sites liegen an genannter Stelle, meine OwnCloud liegt standardgemäß in /var/www/owncloud, doch meines Erachtens zeigt keine Konfiguration noch auf das Verzeichnis.
Dennoch ist OwnCloud über http://raspi/owncloud erreichbar, was ja ganz schön ist, aber nicht möglich sein sollte.
Das schlimme daran ist, dass ich meinen Webserver von außen erreichbar machen will, jedoch ohne einen Zugriff auf OwnCloud überhaupt zu ermöglichen (auch wenn die externe URL von OwnCloud selbst abgelehnt wird). Momentan jedoch erreiche ich sie unter der externen DynDNS.Adresse/owncloud, was ich aber nicht will.
Weiß jemand, wieso, weshalb, warum und wie nicht?