MY /ETC/APACHE2 DIRECTORY*****************
drwxr-xr-x 8 root root 4096 Jun 26 01:00 .
drwxr-xr-x 122 root root 8192 Jul 5 20:17 ..
-rw-r--r-- 1 root root 2266 May 28 22:55 README
-rw-r--r-- 1 root root 12482 Jul 3 23:45 apache2.conf
drwxr-xr-x 2 root root 4096 Jun 26 01:00 conf.d
-rw-r--r-- 1 root root 748 May 28 22:42 envvars
-rw-r--r-- 1 root root 268 Jun 26 01:00 httpd.conf
-rw-r--r-- 1 root root 12441 May 28 22:55 magic
drwxr-xr-x 2 root root 4096 Jun 26 01:00 mods-available
drwxr-xr-x 2 root root 4096 Jun 26 01:00 mods-enabled
-rw-r--r-- 1 root root 10 Jun 26 01:00 ports.conf
drwxr-xr-x 2 root root 4096 Jun 26 01:00 sites-available
drwxr-xr-x 2 root root 4096 Jun 26 01:00 sites-enabled
drwxr-xr-x 2 root root 4096 May 28 22:54 ssl
MY /VAR/WWW DIRECTORY**************
drwxr-xr-x 3 root root 4096 Jul 4 00:03 .
drwxr-xr-x 15 root root 4096 Jun 26 01:00 ..
drwxr-xr-x 2 root root 4096 Jun 26 01:00 apache2-default
lrwxrwxrwx 1 root root 23 Jul 4 00:03 bugzilla -> /usr/share/bugzilla/web
lrwxrwxrwx 1 root root 35 Jul 3 23:23 index.cgi -> /usr/lib/cgi-bin/bugzilla/index.cgi
lrwxrwxrwx 1 root root 24 Jul 4 00:03 index.html -> /etc/bugzilla/index.html
MY VHOST BLOCK******************
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DirectoryIndex index.html index.cg
DocumentRoot /var/www
<Directory />
Options FollowSymLinks ExecCGI
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
MY APACHE2.CONF****************
# Based upon the NCSA server configuration files originally by Rob McCool.
# Changed extensively for the Debian package by Daniel Stone <daniel@sfarc.net>
# and also by Thom May <thom@debian.org>.
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE! If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
# you will save yourself a lot of trouble.
ServerRoot "/etc/apache2"
# The LockFile directive sets the path to the lockfile used when Apache
# is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
# USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
# its default value. The main reason for changing it is if the logs
# directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
# DISK. The PID of the main server process is automatically appended to
# the filename.
LockFile /var/lock/apache2/accept.lock
# PidFile: The file in which the server should record its process
# identification number when it starts.
PidFile /var/run/apache2.pid
# Timeout: The number of seconds before receives and sends time out.
Timeout 300
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
KeepAlive On
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
MaxKeepAliveRequests 100
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
KeepAliveTimeout 15
##
## Server-Pool Size Regulation (MPM specific)
##
# prefork MPM
# StartServers ......... number of server processes to start
# MinSpareServers ...... minimum number of server processes which are kept spare
# MaxSpareServers ...... maximum number of server processes which are kept spare
# MaxClients ........... maximum number of server processes allowed to start
# MaxRequestsPerChild .. maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 20
MaxRequestsPerChild 0
</IfModule>
# pthread MPM
# StartServers ......... initial number of server processes to start
# MaxClients ........... maximum number of server processes allowed to start
# MinSpareThreads ...... minimum number of worker threads which are kept spare
# MaxSpareThreads ...... maximum number of worker threads which are kept spare
# ThreadsPerChild ...... constant number of worker threads in each server process
# MaxRequestsPerChild .. maximum number of requests a server process serves
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
# perchild MPM
# NumServers ........... constant number of server processes
# StartThreads ......... initial number of worker threads in each server process
# MinSpareThreads ...... minimum number of worker threads which are kept spare
# MaxSpareThreads ...... maximum number of worker threads which are kept spare
# MaxThreadsPerChild ... maximum number of worker threads in each server process
# MaxRequestsPerChild .. maximum number of connections per server process (then it dies)
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
AcceptMutex fcntl
</IfModule>
User www-data
Group www-data
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
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
# Global error log.
ErrorLog /var/log/apache2/error.log
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
# Include all the user configurations: