Created
April 24, 2015 08:45
-
-
Save martinrusev/5e5b3180f3abc0271669 to your computer and use it in GitHub Desktop.
Minimalistic Apache Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ServerType standalone | |
| HostnameLookups off | |
| User www | |
| Group www | |
| PidFile /tmp/httpd.pid | |
| ServerSignature Off | |
| UseCanonicalName Off | |
| Timeout 50 | |
| KeepAlive On | |
| MaxKeepAliveRequests 40 | |
| KeepAliveTimeout 5 | |
| MinSpareServers 10 | |
| MaxSpareServers 15 | |
| StartServers 5 | |
| MaxClients 256 | |
| MaxRequestsPerChild 100 | |
| ServerName local.apache | |
| Listen *:81 | |
| ExtendedStatus On | |
| DocumentRoot /var/www/apache | |
| AddHandler cgi-script .cgi | |
| DirectoryIndex index.html | |
| <Directory /> | |
| AllowOverride None | |
| order deny,allow | |
| deny from all | |
| </Directory> | |
| #UserDir public_html | |
| <Directory /var/www> | |
| Options All | |
| AllowOverride None | |
| order deny,allow | |
| allow from all | |
| </Directory> | |
| <Location /server-status> | |
| SetHandler server-status | |
| order deny,allow | |
| deny from all | |
| allow from 192.168 | |
| </Location> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment