~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to doc/setup/ivle-both.conf

  • Committer: David Coles
  • Date: 2009-08-06 04:04:37 UTC
  • Revision ID: coles.david@gmail.com-20090806040437-a8k5jhkkf2ixud5a
Add a rather lenient RLIMIT_NPROC that will prevent simple fork bombs (hopefully accidental...) from taking down a server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Custom IVLE Apache config script
2
2
# Configures IVLE at the root of the site.
3
 
NameVirtualHost *
 
3
NameVirtualHost *:80
4
4
ServerAdmin ADMIN@EXAMPLE.COM
5
5
ServerName IVLE.EXAMPLE.COM
6
6
 
7
 
<VirtualHost *>
8
 
    DocumentRoot /opt/ivle/www
 
7
<VirtualHost *:80>
 
8
    DocumentRoot /usr/local/share/ivle/www
9
9
    ServerName localhost
10
 
    ServerName public.localhost
 
10
    ServerAlias public.localhost
11
11
    <Directory />
12
12
        Options FollowSymLinks
13
13
        AllowOverride None
14
14
    </Directory>
15
 
    <Directory "/opt/ivle/www/">
16
 
        AllowOverride None
 
15
 
 
16
    <Location />
17
17
        Order allow,deny
18
 
        allow from all
 
18
        Allow from all
19
19
        SetHandler mod_python
20
 
        PythonHandler dispatch
 
20
        PythonHandler ivle.dispatch
21
21
        #PythonDebug On
22
 
        Options FollowSymLinks
23
 
        PythonOption mod_python.file_session.database_directory /home/informatics/sessions
 
22
        PythonOption mod_python.file_session.database_directory /var/lib/ivle/sessions
24
23
        PythonOption mod_python.session.cookie_name ivle
25
 
    </Directory>
26
 
    <Directory "/opt/ivle/www/media">
27
 
        SetHandler None
28
 
    </Directory>
29
 
    <Directory "/opt/ivle/www/php">
30
 
        SetHandler None
31
 
    </Directory>
 
24
    </Location>
32
25
 
33
26
    ErrorLog /var/log/apache2/error.log
34
27
 
40
33
    ServerSignature On
41
34
</VirtualHost>
42
35
 
43
 
<VirtualHost *>
 
36
<VirtualHost *:80>
44
37
  ServerName svn.localhost
45
38
  <Location /users>
46
39
    DAV svn
47
 
    SVNParentPath /home/informatics/repositories/users
48
 
    AuthzSVNAccessFile /opt/ivle/svn/svn.conf
 
40
    SVNParentPath /var/lib/ivle/svn/repositories/users
 
41
    AuthzSVNAccessFile /var/lib/ivle/svn/svn.conf
49
42
    Require valid-user
50
43
    AuthType Basic
51
44
    AuthName "Subversion repository"
52
 
    AuthUserFile /opt/ivle/svn/ivle.auth
 
45
    AuthUserFile /var/lib/ivle/svn/ivle.auth
53
46
  </Location>
54
47
  <Location /groups>
55
48
    DAV svn
56
 
    SVNParentPath /home/informatics/repositories/groups
57
 
    AuthzSVNAccessFile /opt/ivle/svn/svn-group.conf
 
49
    SVNParentPath /var/lib/ivle/svn/repositories/groups
 
50
    AuthzSVNAccessFile /var/lib/ivle/svn/svn-group.conf
58
51
    Require valid-user
59
52
    AuthType Basic
60
53
    AuthName "Subversion repository"
61
 
    AuthUserFile /opt/ivle/svn/ivle.auth
 
54
    AuthUserFile /var/lib/ivle/svn/ivle.auth
62
55
  </Location>
63
56
</VirtualHost>
64
57