vhost

Przykładowy vhost

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>
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

status.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

configlua.conf
<filesMatch "\.lua$">
Order Deny,Allow
Deny from all
</filesMatch>
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 
eduotos/apache.txt · Last modified: 2011/09/06 23:16 by h4v
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki