Gentoo Archives: gentoo-user

From: Gololo <gololo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Apache 2.2.6 - Problems with vhosts
Date: Wed, 12 Nov 2008 11:13:55
Message-Id: f3862b9f0811120313x19d286d3r1bddb152ff9eff45@mail.gmail.com
In Reply to: Re: [gentoo-user] Apache 2.2.6 - Problems with vhosts by Neil Bothwick
1 Ok, thanks for the quick answer. I will try this in a second, but, just a
2 couple of questions.
3
4 1) DocumentRoot "/home/group1/user1/public_html"
5 <Directory "/var/www/stfw.net/htdocs">
6 Should I write there the same path there? I mean, should I write the
7 path to the public_html directory both in DocumentRoot and in Directory?
8
9 2) How should I add the subdomains in this 01_example.com.conf. Would it be
10 something like this?
11
12 <VirtualHost subd1.example.com:80 <http://www.example.com/>>
13 DocumentRoot "/home/group1/user1/public_html/subd1/"
14 <Directory "/var/www/stfw.net/htdocs">
15 Options Indexes
16 order allow,deny
17 Allow from all
18 </Directory>
19 </VirtualHost>
20
21 Thanks!
22
23 You don't edit 00_default_vhost.conf, that for teh default setting (hint:
24 > look at the name of the file). Put your settings in 01_domain.conf,
25 > 02_domain2.conf etc.
26 >
27 > Secondly, you have only defined more default setups here. And where isthe
28 > Directory stanza for the user dir? The contents of 01_example.com.conf
29 > should be along the lines of
30 >
31 > <VirtualHost www.example.com:80>
32 > ServerAlias example.com
33 > DocumentRoot "/home/group1/user1/public_html"
34 > <Directory "/var/www/stfw.net/htdocs">
35 > Options Indexes
36 > order allow,deny
37 > Allow from all
38 > </Directory>
39 > </VirtualHost>
40 >
41 >
42 > --
43 > Neil Bothwick
44 >
45 > WinErr 011: Window open - Do not look outside
46 >

Replies

Subject Author
Re: [gentoo-user] Apache 2.2.6 - Problems with vhosts Neil Bothwick <neil@××××××××××.uk>