summaryrefslogtreecommitdiffstats
path: root/software/server-setup
diff options
context:
space:
mode:
authorbnewbold <bnewbold@ziggy.huji.ac.il>2009-06-28 16:42:35 +0300
committerbnewbold <bnewbold@ziggy.huji.ac.il>2009-06-28 16:42:35 +0300
commit61a434c7d72a75ab02f0fe1e979c8750609b7cff (patch)
tree923ee113cb39a4114e67c5aed5eaeb12cbd937e0 /software/server-setup
parent45a71ed4c4e144772546e25f240e59f56f7c4db4 (diff)
downloadknowledge-61a434c7d72a75ab02f0fe1e979c8750609b7cff.tar.gz
knowledge-61a434c7d72a75ab02f0fe1e979c8750609b7cff.zip
server setup filled out and moved
Diffstat (limited to 'software/server-setup')
-rw-r--r--software/server-setup42
1 files changed, 42 insertions, 0 deletions
diff --git a/software/server-setup b/software/server-setup
new file mode 100644
index 0000000..0000465
--- /dev/null
+++ b/software/server-setup
@@ -0,0 +1,42 @@
+=========================================
+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.
+
+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).