==vhost==
Przykładowy vhost
NameVirtualHost *
ServerAdmin email@wp.pl
ServerName otos.pl
ServerAlias www.otos.pl
DocumentRoot /var/www/ots
php_admin_value open_basedir /var/www/ots/:/tmp/
Options FollowSymLinks -Indexes
AllowOverride All
php_flag display_errors off
ErrorLog /var/log/apache2/ximmy/error.log
LogLevel warn
CustomLog /var/log/apache2/ximmy/access.log combined
==apache konfiguracja==
Rozszerzone statystyki - spowalnia apache, daje większy pogląd na to co się z nim dzieje. Można wrzucić do /etc/apache2/conf.d lub prosto do apache.conf
ExtendedStatus On
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
SetHandler server-status
Order deny,allow
Deny from all
Allow from
#
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
SetHandler server-info
Order deny,allow
Deny from all
Allow from
Nie pokazuje *.lua
Order Deny,Allow
Deny from all
==mod_cban==
//na debianie 6 - http://www.howtoforge.com/mod_cband_apache2_bandwidth_quota_throttling //
aptitude install apache2-dev make #apx2
Makefile:
APXS_OPTS=-lm -Wc,-Wall -Wc,-DDST_CLASS=3I