Sida 1 av 1

Apache2 status [LÖST]

Postat: 19 jan 2009, 21:13
av MatsB
Jag får upp detta när jag surfar till: http://192.168.0.2/server-status: You don't have permission to access /server-status on this server
från min Windows PC (192.168.0.10)

Kör med Ubuntu 8.10 Desktop

Så här ser min konf. ut på 192.168.0.2 /etc/apache/apache2.conf:

Kod: Markera allt

ExtendedStatus On

<Location /server-status>
 SetHandler server-status
 Order Deny,Allow
 Deny from all
 Allow from 192.168.0.10
</Location>
Desktop installationen är helt ny och både Ubuntu PC och min Windows dator ligger på samma subnet

Några ideér?

Re: Apache2 status

Postat: 19 jan 2009, 22:19
av andol
Hur ser /etc/apache2/mods-enabled/status.conf ut?

Re: Apache2 status [LÖST]

Postat: 19 jan 2009, 22:52
av MatsB
Tack andol.

Man behövde tydligen ändra den också, så nu fungerar det.

<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost ip6-localhost
Allow from 192.168.0.0/24
</Location>

Re: Apache2 status [LÖST]

Postat: 19 jan 2009, 23:03
av andol
Räcker egentligen ha att konfiguration där. Notera följande rader i din apache2.conf.

Kod: Markera allt

# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf