summaryrefslogtreecommitdiffstats
path: root/software/server-setup
blob: 58b419b2f9e6274742e02ad02766dd3daa5b4669 (plain)
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
=========================================
Generic Server Setup Tricks
=========================================

See also `debian </k/software/debian>`_ and 
`freebsd tricks </k/software/freebsd-tricks>`_.

bind
-------------
You probably want to hide your bind verison name to prevent scanning and 
attacks. Edit ``/etc/bind/named.conf`` or ``/etc/bind/named.conf.options``
and add this line to the options block::

    version "Withheld";

ntp
------------
ntp servers listen on port 37. 

temboz
----------
The temboz feed reader is started by::

$./temboz --server &

in the appropriate directory.


File Hierarchy
------------------
/srv/
    Root for server files, scripts, and databases

/srv/http/
    Subdirectories for each virtual host live in this folder, out of which
    static `HTTP </k/software/http>`__ content is served.

/srv/django/
    Django applications and their databases live in here.

/srv/git/
    Bare git repositories are stored here; those with a file 
    ``git-daemon-export-ok`` get served up through a web interface and can be
    publically cloned.

/srv/
    SVN repository roots are stored in sub folder in here.

/srv/python/
    Standalone python scripts and applications are stored in here (not Django
    apps).