gelöst: Wieso ist OwnCloud bei mir erreichbar???

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
atarixle
Beiträge: 349
Registriert: 20.02.2006 19:30:37

gelöst: Wieso ist OwnCloud bei mir erreichbar???

Beitrag von atarixle » 16.11.2015 23:41:10

Hallo,

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>
soll alle Aufrufe mit meiner normalen Homepage beantworten.

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>
soll mir stattdessen mein Intranet liefern, sobald ich den Server von zu Hause aus über den internen Namen aufrufe.

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?
Zuletzt geändert von atarixle am 17.11.2015 00:06:26, insgesamt 1-mal geändert.

atarixle
Beiträge: 349
Registriert: 20.02.2006 19:30:37

Re: Wieso ist OwnCloud bei mir erreichbar???

Beitrag von atarixle » 17.11.2015 00:05:40

Ah ... alles klar ... es gab da noch folgende Datei

Code: Alles auswählen

# cat /etc/apache2/conf-available/owncloud.conf
Alias /owncloud "/var/www/owncloud/"
<Directory "/var/www/owncloud">
    Options +FollowSymLinks
    AllowOverride All

    <IfModule mod_dav.c>
      Dav off
    </IfModule>

    SetEnv HOME /var/www/owncloud
    SetEnv HTTP_HOME /var/www/owncloud
</Directory>

<Directory "/var/www/owncloud/data/">
  # just in case if .htaccess gets disabled
  Require all denied
</Directory>
Zu dieser hab ich einfach den Link in /etc/apache2/conf-enabled gelöscht und alles läuft, wie es soll.

Benutzeravatar
weshalb
Beiträge: 1283
Registriert: 16.05.2012 14:19:49

Re: gelöst: Wieso ist OwnCloud bei mir erreichbar???

Beitrag von weshalb » 19.11.2015 09:34:37

Wieso ist OwnCloud bei mir erreichbar???
Angesichts des "sicheren und problemlosen" Betriebs dieses Superprogramms frage ich mich das auch. :twisted:

Antworten