based on 4.4-RELEASE for ports/www/apache13 I run small old boxes as gateways, & dont want to waste RAM. I enable the proxy. HostnameLookups On LanguagePriority en de fr + Various other hacks *** conf/httpd.conf-dist.pre_jhs Mon Jan 14 13:54:06 2002 --- conf/httpd.conf-dist Mon Jan 14 14:26:27 2002 *************** *** 111,117 **** # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # ! MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the --- 111,119 ---- # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # ! # pre_jhs MaxKeepAliveRequests 100 ! # reduced in case I'm on a dial up ! MaxKeepAliveRequests 20 # # KeepAliveTimeout: Number of seconds to wait for the next request from the *************** *** 132,145 **** # a new spare. If there are more than MaxSpareServers, some of the # spares die off. The default values are probably OK for most sites. # ! MinSpareServers 5 ! MaxSpareServers 10 # # Number of servers to start initially --- should be a reasonable ballpark # figure. # ! StartServers 5 # # Limit on total number of servers running, i.e., limit on the number --- 134,150 ---- # a new spare. If there are more than MaxSpareServers, some of the # spares die off. The default values are probably OK for most sites. # ! # pre_jhs MinSpareServers 5 ! MinSpareServers 2 ! # pre_jhs MaxSpareServers 10 ! MaxSpareServers 4 # # Number of servers to start initially --- should be a reasonable ballpark # figure. # ! #pre_jhs StartServers 5 ! StartServers 2 # # Limit on total number of servers running, i.e., limit on the number *************** *** 148,154 **** # It is intended mainly as a brake to keep a runaway server from taking # the system with it as it spirals down... # ! MaxClients 150 # # MaxRequestsPerChild: the number of requests each child process is --- 153,160 ---- # It is intended mainly as a brake to keep a runaway server from taking # the system with it as it spirals down... # ! #pre_jhs MaxClients 150 ! MaxClients 30 # # MaxRequestsPerChild: the number of requests each child process is *************** *** 174,179 **** --- 180,189 ---- #Listen 3000 #Listen 12.34.56.78:80 + # jhs used to use @ holz: + # Listen 80 + # Listen 8080 + # # BindAddress: You can support virtual hosts with this option. This directive # is used to tell the server which IP address to listen to. It can either *************** *** 251,257 **** # e-mailed. This address appears on some server-generated pages, such # as error documents. # ! ServerAdmin you@._ERASE_.your.address # # ServerName allows you to set a host name which is sent back to clients for --- 261,268 ---- # e-mailed. This address appears on some server-generated pages, such # as error documents. # ! # pre_jhs ServerAdmin you@._ERASE_.your.address ! ServerAdmin webmaster@._ERASE_.berklix._ERASE_.com # # ServerName allows you to set a host name which is sent back to clients for *************** *** 270,282 **** # local testing and development, you may use 127.0.0.1 as the server name. # #ServerName new.host.name # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # ! DocumentRoot "@@ServerRoot@@/htdocs" # # Each directory to which Apache has access, can be configured with respect --- 281,295 ---- # local testing and development, you may use 127.0.0.1 as the server name. # #ServerName new.host.name + ServerName berklix.com # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # ! # pre_jhs DocumentRoot "@@ServerRoot@@/htdocs" ! DocumentRoot "/site/@@ServerRoot@@/www/data" # # Each directory to which Apache has access, can be configured with respect *************** *** 301,307 **** # # This should be changed to whatever you set DocumentRoot to. # ! # # This may also be "None", "All", or any combination of "Indexes", --- 314,321 ---- # # This should be changed to whatever you set DocumentRoot to. # ! # pre_jhs ! # # This may also be "None", "All", or any combination of "Indexes", *************** *** 326,331 **** --- 340,353 ---- Allow from all + # Extra directory section by jhs + + Options Indexes FollowSymLinks ExecCGI + AllowOverride None + Options None + + + # # UserDir: The name of the directory which is appended onto a user's home # directory if a ~user request is received. *************** *** 360,377 **** # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # ! # ! # AllowOverride FileInfo AuthConfig Limit ! # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ! # ! # Order allow,deny ! # Allow from all ! # ! # ! # Order deny,allow ! # Deny from all ! # ! # # # DirectoryIndex: Name of the file or files to use as a pre-written HTML --- 360,377 ---- # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # ! ! AllowOverride FileInfo AuthConfig Limit ! Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ! ! Order allow,deny ! Allow from all ! ! ! Order deny,allow ! Deny from all ! ! # # DirectoryIndex: Name of the file or files to use as a pre-written HTML *************** *** 420,425 **** --- 445,451 ---- # TypesConfig conf/mime.types + # jhs used to use /site/@@ServerRoot@@/etc/apache/mime.types # *************** *** 446,451 **** --- 472,478 ---- # MIMEMagicFile conf/magic + # jhs used to use MIMEMagicFile /site/@@ServerRoot@@/etc/apache/magic # *************** *** 456,462 **** # each client request will result in AT LEAST one lookup request to the # nameserver. # ! HostnameLookups Off # # ErrorLog: The location of the error log file. --- 483,490 ---- # each client request will result in AT LEAST one lookup request to the # nameserver. # ! # pre_jhs HostnameLookups Off ! HostnameLookups On # # ErrorLog: The location of the error log file. *************** *** 472,478 **** # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # ! LogLevel warn # # The following directives define some format nicknames for use with --- 500,507 ---- # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # ! # pre_jhs LogLevel warn ! LogLevel info # # The following directives define some format nicknames for use with *************** *** 497,509 **** # following directives. # #CustomLog logs/referer_log referer #CustomLog logs/agent_log agent # # If you prefer a single logfile with access, agent, and referer information # (Combined Logfile Format) you can use the following directive. # ! CustomLog logs/access_log combined # # Optionally add a line containing the server version and virtual host --- 526,543 ---- # following directives. # #CustomLog logs/referer_log referer + CustomLog /var/log/httpd-referer.log referer + #CustomLog logs/agent_log agent + CustomLog /var/log/httpd-agent.log agent + + CustomLog /var/log/httpd-access.log access # # If you prefer a single logfile with access, agent, and referer information # (Combined Logfile Format) you can use the following directive. # ! # CustomLog logs/access_log combined # # Optionally add a line containing the server version and virtual host *************** *** 567,579 **** # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # ! ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/" # # "@@ServerRoot@@/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # ! AllowOverride None Options None Order allow,deny --- 601,615 ---- # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # ! # pre_jhs ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/" ! ScriptAlias /cgi-bin/ "/site/@@ServerRoot@@/cgi-bin/" # # "@@ServerRoot@@/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # ! # pre_jhs ! AllowOverride None Options None Order allow,deny *************** *** 758,764 **** # more or less alphabetized them here. You probably want to change this. # ! LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw # --- 794,801 ---- # more or less alphabetized them here. You probably want to change this. # ! # pre_jhs LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw ! LanguagePriority en de fr da nl et el it ja kr no pl pt pt-br ru ltz ca es sv tw # *************** *** 793,798 **** --- 830,837 ---- # To use CGI scripts: # #AddHandler cgi-script .cgi + # pre_jhs it was commented out. + AddHandler cgi-script .cgi # # To use server-parsed HTML files *************** *** 898,903 **** --- 937,950 ---- # Allow from .your_domain.com # + # added by jhs: + + SetHandler server-status + Order deny,allow + Deny from all + Allow from .js.berklix.net + + # # Allow remote server configuration reports, with the URL of # http://servername/server-info (requires that mod_info.c be loaded). *************** *** 957,962 **** --- 1004,1029 ---- # # End of proxy directives. + # Added by jhs: {---------- + + ProxyRequests On + + Order deny,allow + Deny from all + Allow from .js.berklix.net + + + ProxyVia On + CacheRoot "/site/@@ServerRoot@@/www/proxy" + CacheSize 5 + CacheGcInterval 4 + CacheMaxExpire 24 + CacheLastModifiedFactor 0.1 + CacheDefaultExpire 1 + NoCache berklix.com berklix.org berklix.net js.berklix.net + + # ----------} + ### Section 3: Virtual Hosts # # VirtualHost: If you want to maintain multiple domains/hostnames on your *************** *** 988,990 **** --- 1055,1068 ---- # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common # + + # Added by jhs: {---------- + # + # Cannot resolve host name berklix.com --- ignoring! + # ServerName berklix.com + # + + + + + # ----------}