For those who are running an Apache server, ive found the following bare-bones configuration. It just serves files and indexes directories. This is assuming that you’ve compiled apache with shared libraries.
1: Listen 80
2: ServerRoot /usr/local/apache20
3: DocumentRoot /usr/local/apache20/htdocs
4: LoadModule autoindex_module modules/mod_autoindex.so
5: LoadModule dir_module modules/mod_dir.so
6: LoadModule access_module modules/mod_access.so
7:
8: User nobody
9: # If you’re not on Linux, you’ll probably need to change Group
10: Group nobody
11:
12: <IfModule prefork.c>
13: MaxClients 150
14: StartServers 5
15: MinSpareServers 5
16: MaxSpareServers 10
17: </IfModule>
18:
19: <IfModule worker.c>
20: StartServers 2
21: MaxClients 150
22: MinSpareThreads 25
23: MaxSpareThreads 75
24: ThreadsPerChild 25
25: MaxRequestsPerChild 0
26: </IfModule>
27:
28: # Assume no memory leaks at all
29: MaxRequestsPerChild 0
30:
31: # it’s always nice to know the server has started
32: ErrorLog logs/error_log
33:
34: # Some benchmarks require logging, which is a good requirement. Uncomment
35: # this if you need logging.
36: #TransferLog logs/access_log
37:
38: <Directory />
39: # The server can be made to avoid following symbolic links,
40: # to make security simpler. However, this takes extra CPU time,
41: # so we will just let it follow symlinks.
42: Options Indexes FollowSymLinks
43:
44: # Don’t check for .htaccess files in each directory - they slow
45: # things down
46: AllowOverride None
47:
48: # If this was a real internet server you’d probably want to
49: # uncomment these:
50: order allow,deny
51: allow from all
52: </Directory>
53:
54: # If this was a real internet server you’d probably want to uncomment this:
55: <Directory “/usr/local/apache20/htdocs”>
56: order allow,deny
57: allow from all
58: Options Indexes FollowSymLinks
59: #Options All
60: </Directory>