Difference between revisions of "Configuration (Apache)"

Jump to navigation Jump to search
1,535 bytes added ,  12:26, 15 March 2012
Added "Status Page"
(Initial creation - content from Apache page)
 
(Added "Status Page")
Line 26: Line 26:
# Restart the apache service
# Restart the apache service
#* <code> service apache2 restart </code>
#* <code> service apache2 restart </code>
== Status Page ==
Apache comes with its own in-built status page which, whilst not particularly pretty, gives a good overview of how your web-server is running.  In the more recent versions of Apache its enabled by default, but only accessible from localhost.
To check that its enabled, look in <code>/etc/apache/mods-enabled/</code> for two file link for <code>status.conf</code> and <code>status.load</code>.  If not, create so that its enabled when you next restart Apache...
# <code> cd /etc/apache/mods-enabled </code>
# <code> ln -s ../mods-available/status.load status.load</code>
# <code> ln -s ../mods-available/status.conf status.conf</code>
Edit the <code>status.conf</code> to add the IP address(es) that you want to be able to (see http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow for guidance on this).  Also enable <code>ExtendedStatus</code>.  Example config file...
<IfModule mod_status.c>
#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Uncomment and change the ".example.com" to allow
# access from other hosts.
#
ExtendedStatus On
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 192.168.1.0/24 123.234.5.6
</Location>
</IfModule>
Restart Apache to apply (<code>service apache2 restart</code>), then access through through an URL similar to http://www.domain.com/server-status.
For further info see http://httpd.apache.org/docs/2.2/mod/mod_status.html


[[Category:Apache]]
[[Category:Apache]]

Navigation menu