public
Created

  • Download Gist
httpd.conf
ApacheConf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.