Home| New Wiki | | Login | User registry | Home Tree PDF
Apache Notes
Owner:, Version: 2, Date:Mon 19, January 2009,

it's very common that I forgot configs that I've prepared in the past.

so here is...

Apache 2.0 and web root

DocumentRoot "C:/server/www"

(hehe, has not changed much)

Apache 2.0 and Subversion (debian)

1) get all packages (-- #.#.# = Version I tried successfuly)

apt-get install subversion     -- 1.4.2dfg1-2
apt-get install apache2        -- 2.2.3-4
apt-get install libapache2-svn -- 1.4.2dfg1-2

2) Add missing variables to /etc/apache2/apache2.conf

ServerAdmin admin@server.com
ServerName server.com:80

3) Create the /server folder structure

/server/
  svn-httpasswd
  svn-public.conf
  svn-pub/

4) Configure apache to use /svn with dav (the same as in windows)

ln -s /server/svn-public.conf /etc/apache2/conf.d/

Apache 2.0 and Subversion (windows)

1) Make sure about svn compatibility issues

e.g. Apache 2.0.61 -> svn-win32-1.4.5

2) load the right modules

LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_svn_module "c:/svn-win32-1.4.5/bin/mod_dav_svn.so"

3) configure one or more locations

# public read, protected write
<Location /code>
 DAV svn
 SVNPath "C:/server/svn-pub"

 AuthType Basic
 AuthName "Subversion repository"
 AuthUserFile "C:/server/svn-htpasswd"
 <LimitExcept GET PROPFIND OPTIONS REPORT>
  Require valid-user
 </LimitExcept>
</Location>


# protected read/write
<Location /private-code>
 DAV svn
 SVNPath "C:/server/svn-priv"

 AuthType Basic
 AuthName "Subversion repository"
 AuthUserFile "C:/server/svn-htpasswd"
 Require valid-user
</Location>

4) Some automatic proxys do not filter DAV correctly so I had to use a different port besides 80:

Listen 81

Apache 2.0 and Tomcat

1) laad the right module

LoadModule jk_module  modules/mod_jk.so

2) Reference the right config file and log level for the mod

JkWorkersFile "/server/tomcat/workers.properties"
JkShmFile "/server/tomcat/logs/mod_jk.shm"
JkLogFile "/server/tomcat/logs/mod_jk.log"
JkLogLevel    error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount  /tomcat_web_context/*   worker1

3) Create the workers.properties file

worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009

Apache 2.0 Proxy

1) Make sure that the right module*s* are loaded

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

2) Make sure that proxy is not open to everybody

ProxyRequests on
ProxyVia Off
<Proxy *>
  Order Deny,Allow
  Deny from all
  Allow from  set of ips
</Proxy>


Edit - History - Extract PDF - Extract Tree as PDF

Last Modified

Thu, Nov 19 Sat, Oct 3 Fri, Sep 25 Mon, Aug 3 Mon, Apr 27 Sat, Mar 28 Mon, Jan 19 Tue, Jan 6

Home| New Wiki