Skip to content

Instantly share code, notes, and snippets.

@rkitover
Created March 29, 2013 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkitover/5268465 to your computer and use it in GitHub Desktop.
Save rkitover/5268465 to your computer and use it in GitHub Desktop.
PidFile /home/rkitover/run/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
<IfModule worker.c>
StartServers 4
MaxClients 300
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
Listen 3000
LoadModule auth_basic_module lib/httpd/mod_auth_basic.so
LoadModule auth_digest_module lib/httpd/mod_auth_digest.so
LoadModule authn_file_module lib/httpd/mod_authn_file.so
#LoadModule authn_alias_module lib/httpd/mod_authn_alias.so
LoadModule authn_anon_module lib/httpd/mod_authn_anon.so
LoadModule authn_dbm_module lib/httpd/mod_authn_dbm.so
#LoadModule authn_default_module lib/httpd/mod_authn_default.so
LoadModule authz_host_module lib/httpd/mod_authz_host.so
LoadModule authz_user_module lib/httpd/mod_authz_user.so
LoadModule authz_owner_module lib/httpd/mod_authz_owner.so
LoadModule authz_groupfile_module lib/httpd/mod_authz_groupfile.so
LoadModule authz_dbm_module lib/httpd/mod_authz_dbm.so
#LoadModule authz_default_module lib/httpd/mod_authz_default.so
#LoadModule ldap_module lib/httpd/mod_ldap.so
#LoadModule authnz_ldap_module lib/httpd/mod_authnz_ldap.so
LoadModule include_module lib/httpd/mod_include.so
LoadModule log_config_module lib/httpd/mod_log_config.so
LoadModule logio_module lib/httpd/mod_logio.so
LoadModule env_module lib/httpd/mod_env.so
LoadModule ext_filter_module lib/httpd/mod_ext_filter.so
LoadModule mime_magic_module lib/httpd/mod_mime_magic.so
LoadModule expires_module lib/httpd/mod_expires.so
LoadModule deflate_module lib/httpd/mod_deflate.so
LoadModule headers_module lib/httpd/mod_headers.so
LoadModule usertrack_module lib/httpd/mod_usertrack.so
LoadModule setenvif_module lib/httpd/mod_setenvif.so
LoadModule mime_module lib/httpd/mod_mime.so
LoadModule dav_module lib/httpd/mod_dav.so
LoadModule status_module lib/httpd/mod_status.so
LoadModule autoindex_module lib/httpd/mod_autoindex.so
LoadModule info_module lib/httpd/mod_info.so
LoadModule dav_fs_module lib/httpd/mod_dav_fs.so
LoadModule vhost_alias_module lib/httpd/mod_vhost_alias.so
LoadModule negotiation_module lib/httpd/mod_negotiation.so
LoadModule dir_module lib/httpd/mod_dir.so
LoadModule actions_module lib/httpd/mod_actions.so
LoadModule speling_module lib/httpd/mod_speling.so
LoadModule userdir_module lib/httpd/mod_userdir.so
LoadModule alias_module lib/httpd/mod_alias.so
LoadModule substitute_module lib/httpd/mod_substitute.so
LoadModule rewrite_module lib/httpd/mod_rewrite.so
LoadModule proxy_module lib/httpd/mod_proxy.so
LoadModule proxy_balancer_module lib/httpd/mod_proxy_balancer.so
LoadModule proxy_ftp_module lib/httpd/mod_proxy_ftp.so
LoadModule proxy_http_module lib/httpd/mod_proxy_http.so
LoadModule proxy_ajp_module lib/httpd/mod_proxy_ajp.so
LoadModule proxy_connect_module lib/httpd/mod_proxy_connect.so
LoadModule cache_module lib/httpd/mod_cache.so
#LoadModule suexec_module lib/httpd/mod_suexec.so
#LoadModule disk_cache_module lib/httpd/mod_disk_cache.so
LoadModule cgi_module lib/httpd/mod_cgi.so
LoadModule version_module lib/httpd/mod_version.so
User rkitover
Group rkitover
ServerAdmin rkitover@amsreo.com
UseCanonicalName ON
SetEnv LD_LIBRARY_PATH /home/rkitover/lib:/home/rkitover/pkg/lib:/lib:/usr/lib:/usr/local/lib
SetEnv PATH /home/rkitover/perl5/perlbrew/perls/perl-5.16.2/bin:/home/rkitover/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
SetEnv PERL5LIB /home/rkitover/my_perl_lib:/home/rkitover/src/plack/lib:/home/rkitover/ems/application/www/cgi-bin/perl
SetEnv VORTICITY_CONFIG /home/rkitover/database.cfg
SetEnv HOME /home/rkitover
PerlSetEnv VORTICITY_CONFIG /home/rkitover/database.cfg
# ~45mb max upload size
SetEnv MOJO_MAX_MESSAGE_SIZE 47185920
PerlSetEnv MOJO_MAX_MESSAGE_SIZE 47185920
DocumentRoot "/home/rkitover/ems/application/home/httpd/html"
<Directory "/home/rkitover/ems/application/home/httpd/html">
DirectoryIndex redirect.html
</Directory>
<IfModule mod_userdir.c>
UserDir disabled
</IfModule>
DirectoryIndex index.html
AccessFileName .htaccess
DefaultType text/plain
HostnameLookups Off
ErrorLog /home/rkitover/logs/error_log
LogLevel warn
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
CustomLog /home/rkitover/logs/access_log combined
ServerSignature On
ScriptAlias /cgi-bin/ "/home/rkitover/ems/application/www/cgi-bin/"
<Directory "/home/rkitover/ems/application/www/cgi-bin">
SetHandler cgi-script
</Directory>
PerlPostConfigRequire /home/rkitover/httpd_startup.pl
<Location /cgi-bin/api>
RewriteEngine off
SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /home/rkitover/ems/application/www/cgi-bin/api.cgi
</Location>
<Location /cgi-bin/api.cgi>
RewriteEngine off
SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /home/rkitover/ems/application/www/cgi-bin/api.cgi
</Location>
<Location /cgi-bin/pnp_settings>
RewriteEngine off
SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /home/rkitover/ems/application/www/cgi-bin/pnp_settings.cgi
</Location>
<Location /cgi-bin/pnp_settings.cgi>
RewriteEngine off
SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /home/rkitover/ems/application/www/cgi-bin/pnp_settings.cgi
</Location>
<Location /cgi-bin/pnp_settings_prototype>
RewriteEngine off
SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /home/rkitover/ems/application/www/cgi-bin/pnp_settings_prototype.cgi
</Location>
<Location /cgi-bin/fsm_ajax_vendor.cgi>
RewriteEngine off
SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /home/rkitover/ems/application/www/cgi-bin/fsm_ajax_vendor.cgi
</Location>
RewriteEngine on
RewriteRule ^/cgi-bin/([^./]+)(/|$)(.*) /cgi-bin/$1.cgi$2$3 [PT]
ErrorDocument 500 /cgi-bin/server_errors.cgi
AddDefaultCharset UTF-8
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
<Location /server-status>
SetHandler server-status
Order deny,allow
Allow from all
</Location>
Alias /ScriptsLocation "/home/rkitover/ems/application/www/cgi-bin/scripts"
<Directory "/home/rkitover/ems/application/www/cgi-bin/scripts">
SetHandler None
</Directory>
#LoadModule dnssd_module lib/httpd/mod_dnssd.so
#
#DNSSDEnable on
LoadModule perl_module lib/httpd/mod_perl.so
<IfModule prefork.c>
# LoadModule php5_module modules/libphp5.so
LoadModule php5_module lib/httpd/mod_php5.so
</IfModule>
<IfModule worker.c>
# LoadModule php5_module modules/libphp5-zts.so
LoadModule php5_module lib/httpd/mod_php5.so
</IfModule>
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php
<FilesMatch "\.php$">
SetHandler php5-script
</FilesMatch>
#LoadModule wsgi_module lib/httpd/mod_wsgi.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment