Created
April 29, 2009 23:35
-
-
Save adkron/104139 to your computer and use it in GitHub Desktop.
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
ServerRoot "/etc/apache2" | |
LockFile /var/lock/apache2/accept.lock | |
PidFile ${APACHE_PID_FILE} | |
Timeout 300 | |
KeepAlive On | |
MaxKeepAliveRequests 100 | |
KeepAliveTimeout 15 | |
<IfModule mpm_prefork_module> | |
StartServers 5 | |
MinSpareServers 5 | |
MaxSpareServers 10 | |
MaxClients 150 | |
MaxRequestsPerChild 0 | |
</IfModule> | |
<IfModule mpm_worker_module> | |
StartServers 2 | |
MaxClients 150 | |
MinSpareThreads 25 | |
MaxSpareThreads 75 | |
ThreadsPerChild 25 | |
MaxRequestsPerChild 0 | |
</IfModule> | |
# These need to be set in /etc/apache2/envvars | |
User apache | |
Group ${APACHE_RUN_GROUP} | |
AccessFileName .htaccess | |
<Files ~ "^\.ht"> | |
Order allow,deny | |
Deny from all | |
</Files> | |
DefaultType text/plain | |
HostnameLookups Off | |
ErrorLog /var/log/apache2/error.log | |
LogLevel warn | |
# Include module configuration: | |
Include /etc/apache2/mods-enabled/*.load | |
Include /etc/apache2/mods-enabled/*.conf | |
# Include all the user configurations: | |
Include /etc/apache2/httpd.conf | |
# Include ports listing | |
Include /etc/apache2/ports.conf | |
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined | |
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 | |
# | |
# Define an access log for VirtualHosts that don't define their own logfile | |
CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined | |
NameVirtualHost *:80 | |
# Include generic snippets of statements | |
Include /etc/apache2/conf.d/ | |
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.1.3/ext/apache2/mod_passenger.so | |
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.1.3 | |
PassengerRuby /usr/bin/ruby1.8 | |
# Include the virtual host configurations: | |
Include /etc/apache2/sites-enabled/ |
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
#!/usr/bin/env ruby | |
require "rubygems" | |
require "integrity" | |
# If you want to add any notifiers, install the gems and then require them here | |
# For example, to enable the Email notifier: install the gem (from github: | |
# | |
# sudo gem install -s http://gems.github.com foca-integrity-email | |
# | |
# And then uncomment the following line: | |
# | |
# require "notifier/email" | |
# Load configuration and initialize Integrity | |
Integrity.new(File.dirname(__FILE__) + "/config.yml") | |
# You probably don't want to edit anything below | |
Integrity::App.set :environment, ENV["RACK_ENV"] || :production | |
Integrity::App.set :port, 80 | |
run Integrity::App |
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
<VirtualHost *:80> | |
ServerName integrity.akingsoftware.com | |
DocumentRoot /home/apache/integrity/public | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment