---
#Let's have some Icons, shall we?
Alias /icons/ "/usr/share/apache2/icons/"
Alias /awstats-icon "/usr/share/awstats/icon"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
---
Oben stehender Eintrag in der httpd.conf wird bemängelt beim reload:
---
/etc/init.d/apache2 restart
* Restarting web server apache2 [Fri Oct 17 19:25:18 2008] [warn] The Alias directive in /etc/apache2/apache2.conf at line 129 will probably never match because it overlaps an earlier Alias.
[Fri Oct 17 19:25:28 2008] [warn] The Alias directive in /etc/apache2/apache2.conf at line 129 will probably never match because it overlaps an earlier Alias.
[ OK ]
---
Braucht man den oder kann ich den rauslöschen? Falls nicht: wo wäre der Fehler zu suchen? Die anderen eingebundenen Config-Dateien enthalten eine solche Direktive nicht!
Apache2 - icons
-
- Posts: 165
- Joined: 2003-06-20 13:07
- Location: Regensburg
Re: Apache2 - icons
Hey Matthias,
dass der Eintrag doppelt da ist, hab ich auch der Meldung entnommen. Drum habe ich ja geschrieben, dass ich den Eintrag aber nirgends (egal in welcher Apache-Config-Datei) gefunden habe. Es kann doch nicht sein, dass ein Alias doppelt vorkommen soll, den ich aber nicht finde. Merkwürdig...
Viele Grüße
Hahni
dass der Eintrag doppelt da ist, hab ich auch der Meldung entnommen. Drum habe ich ja geschrieben, dass ich den Eintrag aber nirgends (egal in welcher Apache-Config-Datei) gefunden habe. Es kann doch nicht sein, dass ein Alias doppelt vorkommen soll, den ich aber nicht finde. Merkwürdig...
Viele Grüße
Hahni
-
- Posts: 165
- Joined: 2003-06-20 13:07
- Location: Regensburg
Re: Apache2 - icons
Die liegen ja alle im Unterordner "/etc/apache2/*"! Und die habe ich schon händisch ge"grep"ed...
-
- Posts: 165
- Joined: 2003-06-20 13:07
- Location: Regensburg
Re: Apache2 - icons
Ich hab den Midnight Commander. Aber vi ist auch voll in Ordnung. Die Zeilen finde ich... Nur den doppelten Eintrag nicht. Wie müsste denn der grep-Befehl genau lauten, wenn ich die ganzen Verzeichnisse unter "/etc/apache2" durchsuchen möchte?
-
- Posts: 165
- Joined: 2003-06-20 13:07
- Location: Regensburg
Re: Apache2 - icons
grep "Alias /icons/" **/*
mods-available/alias.conf:Alias /icons/ "/usr/share/apache2/icons/"
mods-enabled/alias.conf:Alias /icons/ "/usr/share/apache2/icons/"
Folglich kommen sie doch doppelt vor! War ein guter Tipp von dir! Aber beide Aliase werden von ISPConfig höchstwahrscheinlich nicht benutzt!
Welche Eintrag sollte ich dann am Geschicktesten auskommentieren?
mods-available/alias.conf:Alias /icons/ "/usr/share/apache2/icons/"
mods-enabled/alias.conf:Alias /icons/ "/usr/share/apache2/icons/"
Folglich kommen sie doch doppelt vor! War ein guter Tipp von dir! Aber beide Aliase werden von ISPConfig höchstwahrscheinlich nicht benutzt!
Welche Eintrag sollte ich dann am Geschicktesten auskommentieren?
-
- Project Manager
- Posts: 11185
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Apache2 - icons
hahni wrote:Wie müsste denn der grep-Befehl genau lauten, wenn ich die ganzen Verzeichnisse unter "/etc/apache2" durchsuchen möchte?
Code: Select all
grep -rin alias /etc/apache2
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 165
- Joined: 2003-06-20 13:07
- Location: Regensburg
Re: Apache2 - icons
@matze
Was darf es denn zum Programmieren sein?
Was darf es denn zum Programmieren sein?
-
- Posts: 165
- Joined: 2003-06-20 13:07
- Location: Regensburg
Re: Apache2 - icons
Wie gesagt:
---
/etc/apache2/mods-enabled/alias.conf:7:# require it to be present in the URL. So "/icons" isn't aliased in this
/etc/apache2/mods-enabled/alias.conf:12:# We include the /icons/ alias for FancyIndexed directory listings. If
...
...
/etc/apache2/apache2.conf:129:Alias /icons/ "/usr/share/apache2/icons/"
---
---
/etc/apache2/mods-enabled/alias.conf:7:# require it to be present in the URL. So "/icons" isn't aliased in this
/etc/apache2/mods-enabled/alias.conf:12:# We include the /icons/ alias for FancyIndexed directory listings. If
...
...
/etc/apache2/apache2.conf:129:Alias /icons/ "/usr/share/apache2/icons/"
---
-
- Project Manager
- Posts: 11185
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Apache2 - icons
Nimm den Alias aus der apache2.conf und restarte Apache, fertig.
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 165
- Joined: 2003-06-20 13:07
- Location: Regensburg
Re: Apache2 - icons
Das hatte ich auch bereits schon getan! Traumhaft: auch hier kein Warning mehr!
-
- Project Manager
- Posts: 11185
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Apache2 - icons
Wenn beide Dateien original Ubuntu sind, vergiss nicht einen Bugreport zu verfassen.
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.