Forum Moderators: phranque
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_custom CustomLog /path/to/log combined_custom
# apache2ctl status
...
Server Version: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with
Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
Server Built: Dec 11 2010 21:34:00
...
# dpkg -s apache2
Package: apache2
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 100
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Architecture: all
Version: 2.2.9-10+lenny9
Depends: apache2-mpm-worker (>= 2.2.9-10+lenny9) | apache2-mpm-prefork (>= 2.2.9-10+lenny9) | apache2-mpm-event (>= 2.2.9-10+lenny9)
Description: Apache HTTP Server metapackage
The Apache Software Foundation's goal is to build a secure, efficient and
extensible HTTP server as standards-compliant open source software. The
result has long been the number one web server on the Internet.
.
It features support for HTTPS, virtual hosting, CGI, SSI, IPv6, easy
scripting and database integration, request/response filtering, many
flexible authentication schemes, and more.
Homepage: http://httpd.apache.org/
# echo "HostnameLookups On" > etc/apache2/conf.d/test.conf
# apache2ctl -t
Syntax OK
# apache2ctl restart In file: /etc/apache2/apache2.conf
167: HostnameLookups Off
In file: /etc/apache2/conf.d/test.conf
1: HostnameLookups On
<Directory "/path/to/dir">
Order deny,allow
Deny from all
Allow from xx.xx.xx.xx
Allow from xx.xx.xx.xx/xx
Allow from host.example.com
</Directory>
In file: /etc/apache2/mods-enabled/status.conf
8: <Location /server-status>
10: Order deny,allow
11: Deny from all
12: Allow from localhost ip6-localhost
13: Allow from host.example.com
14: Allow from xx.xx.xx.xx
: </Location>