Apache2 - icons

Apache, Lighttpd, nginx, Cherokee
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
 

Apache2 - icons

Post by hahni »

---
#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!
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
 

Re: Apache2 - icons

Post by hahni »

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
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
 

Re: Apache2 - icons

Post by hahni »

Die liegen ja alle im Unterordner "/etc/apache2/*"! Und die habe ich schon händisch ge"grep"ed...
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
 

Re: Apache2 - icons

Post by hahni »

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?
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
 

Re: Apache2 - icons

Post by hahni »

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?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11185
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Apache2 - icons

Post by Joe User »

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
BTW: Nach über fünf Jahren RootForum solltest Du solche Grundlagen wissen...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings 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.
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
 

Re: Apache2 - icons

Post by hahni »

@matze
Was darf es denn zum Programmieren sein?
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
 

Re: Apache2 - icons

Post by hahni »

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/"
---
User avatar
Joe User
Project Manager
Project Manager
Posts: 11185
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Apache2 - icons

Post by Joe User »

Nimm den Alias aus der apache2.conf und restarte Apache, fertig.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings 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.
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
 

Re: Apache2 - icons

Post by hahni »

Das hatte ich auch bereits schon getan! Traumhaft: auch hier kein Warning mehr!
User avatar
Joe User
Project Manager
Project Manager
Posts: 11185
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Apache2 - icons

Post by Joe User »

Wenn beide Dateien original Ubuntu sind, vergiss nicht einen Bugreport zu verfassen.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings 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.