added note about url address
[ikiwiki] / doc / tips / dot_cgi / discussion.mdwn
1 ## Alt explanation/instructions
2 For whatever reason, I found the info on the dot cgi page very confusing.  The instructions on [[http://maketecheasier.com/install-and-configure-apache-in-ubuntu/2011/03/09]] were a lot easier to follow, and ultimately got me over the ubuntu-apache hump.
3
4 Following this method the wiki won't be at the same url, it will be at localhost/*wiki_name*
5
6 ## warning: lighttpd only or both?
7
8 Is your warning at the bottom (you don't know how secure it is) only about
9 lighttpd or it's about apache2 configuration as well?
10
11 > The latter. (Although I don't know why using lighttpd would lead
12 > to any additional security exposure anyway.) --[[Joey]] 
13
14 I'm asking this because right now I want to setup an httpd solely for the
15 public use of ikiwiki on a general purpose computer (there are other things
16 there), and so I need to choose the more secure solution. --Ivan Z.
17
18 > AFAIU, my main simplest security measure should be running the public
19 > ikiwiki's cgi under a special user, but then: how do I push to the repo
20 > owned by that other user? I see, probably I should setup the public wiki
21 > under the special user (so that it was able to create the cgi-script with
22 > the desired permission), and then give my personal user the required
23 > permissions to make a git-push by, say, creating a special Unix group for
24 > this.
25
26 > Shouldn't there be a page here which would document a secure public and
27 > multi-user installation of ikiwiki (by "multi-user" I mean writable by a
28 > group of local Unix users)? If there isn't such yet, I started writing it
29 > with this discussion.--Ivan Z.
30
31 > I see, perhaps a simpler setup would not make use of a Unix group, but
32 > simply allow pushing to the public wiki (kept under a special user) through
33 > git+ssh. --Ivan Z.
34
35 >> Yes, it's certianly possible to configure git (and svn, etc) repositories so that
36 >> two users can both push to them. There should be plenty of docs out there
37 >> about doing that.
38 >> 
39 >> The easiest way though is probably
40 >> to add your ssh key to the special user's `.ssh/authorized_keys`
41 >> and push that way. --[[Joey]] 
42
43 ## apache2 - run from userdir
44 Followed instructions but couldn't get it right to run from user dir (running ubuntu jaunty),  
45 Finally got it working once I've sym linked as follow (& restarted apache):    
46 \# ln -s ../mods-available/userdir.load .  
47 \# ln -s ../mods-available/userdir.conf .  
48 \# pwd  
49 /etc/apache2/mods-enabled  
50
51