Przykładowy vhost
NameVirtualHost * <VirtualHost *> ServerAdmin email@wp.pl ServerName otos.pl ServerAlias www.otos.pl DocumentRoot /var/www/ots php_admin_value open_basedir /var/www/ots/:/tmp/ <Directory /> Options FollowSymLinks -Indexes AllowOverride All php_flag display_errors off </Directory> ErrorLog /var/log/apache2/ximmy/error.log LogLevel warn CustomLog /var/log/apache2/ximmy/access.log combined </VirtualHost>
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 <IfModule mod_status.c> # 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. # <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from <ip> </Location> </IfModule> <IfModule mod_info.c> # # 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. # <Location /server-info> SetHandler server-info Order deny,allow Deny from all Allow from <ip> </Location> </IfModule>
Nie pokazuje *.lua
<filesMatch "\.lua$"> Order Deny,Allow Deny from all </filesMatch>
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