Apache

From GeilThings

Jump to: navigation, search
Apache
General
Version 2.2.3
Stable 2.4.6
Function Web Server
Files
Config File /etc/httpd/conf/httpd.conf
Log File /var/log/httpd/*
Scripts
Start httpd -k start
Stop httpd -k stop

Contents

General

  • Apache 2.2.3: WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers, lowering MaxClients to 10. To increase, please see the ServerLimit directive.
This warning message from the error_log in /var/log/httpd appears only if httpd -k restart is used. httpd -k stop followed by httpd -k start does not produce it.
htpasswd -c /path/to/file/with/passwords username

Apache Modules

mod_rewrite

mod_perl

    <Directory "/path/to/directory/containing/perl/scripts">
        AllowOverride None
        Options ExecCGI -MultiViews +SymLinksIfOwnerMatch +ExecCGI
        Order allow,deny
        Allow from all
        <Files *.pl>
            SetHandler perl-script
            PerlHandler ModPerl::Registry
            Options +ExecCGI
            PerlSendHeader On
        </Files>
    </Directory>

Running Apache

# Set startup runlevel at reboot.
# If httpd does not appear in the list after running "chkconfig --list", use
# chkconfig --add httpd --level 345 httpd on
chkconfig --level 345 httpd on
 
# Add to /etc/httpd/conf/httpd.conf:
NameVirtualHost *:80
NameVirtualHost *:443
Include /etc/httpd/vhosts.d/*.conf
 
mkdir /etc/httpd/vhosts.d

Comments

blog comments powered by Disqus