1 |
On 9/7/07, Steen Eugen Poulsen <sep@×××××××××.net> wrote: |
2 |
> |
3 |
> Kevin O'Gorman skrev: |
4 |
> > My 00_default_vhost.conf: |
5 |
> > =============== start 00_default_vhost.conf ========================== |
6 |
> > # If your host doesn't have a registered DNS name, enter its IP address |
7 |
> > here. |
8 |
> > # |
9 |
> > #ServerName www.example.com:80 <http://www.example.com:80> |
10 |
> > ServerName www.kosmanor.com:80 <http://www.kosmanor.com:80> |
11 |
> > |
12 |
> > #KOSMANOR changes |
13 |
> > #Listen 80 |
14 |
> > Listen 64.166.164.49:80 <http://64.166.164.49:80> |
15 |
> > Listen localhost:80 |
16 |
> |
17 |
> Thats not a vhost configuration, so it's a bit confusing why your trying |
18 |
> to use Gentoo's default vhost config file and making non vhost configs |
19 |
> and I bet it isn't liking the missing: |
20 |
> |
21 |
> NameVirtualHost *:80 (You will have to check the apache2 doc for the |
22 |
> VirtualIP version of NameVirtualHost) |
23 |
> |
24 |
> <VirtualHost *:80> |
25 |
> |
26 |
> If you want to make a non vhost configuration, then do so from the |
27 |
> ground up, don't mix vhost and non vhost unless you want a mess. |
28 |
> |
29 |
> The reason you get :80 already bound, is because your configuration bind |
30 |
> twice to the same IP. It's Apache itself that bind twice and bails on |
31 |
> the second attempt. |
32 |
> |
33 |
> Not having used this configuration layout in years, I would guess |
34 |
> ServerName is the one creating the listening socket, maybe because it's |
35 |
> placed before Listen. |
36 |
|
37 |
|
38 |
A workaround has been found (see below). |
39 |
|
40 |
As may be obvious by now, I don't understand much about configuring apache. |
41 |
I just used what dropped in when I installed Gentoo around 2003, and tried |
42 |
to adapt as time and updates came along. My needs are fairly simple: a |
43 |
basic server on a single IP plus localhost, using the default port 80. |
44 |
Static and CGI pages only, no secure applications. Users (only me, |
45 |
actually) have a page in public_html. I intend to use mod_python |
46 |
eventually, or write my own module, but that's for later. |
47 |
|
48 |
I have not a clue how to build a configuration "from the ground up", and I'm |
49 |
hoping to not have to learn. Since it would be a singleton excercise, I |
50 |
would just forget it anyway in the midst of many other things that claim my |
51 |
attention. |
52 |
|
53 |
Workaround: |
54 |
In any event, making ServerName come after Listen, or commenting it out |
55 |
completely, do not change the symptoms at all. However, commenting out all |
56 |
Listen lines does allow apache to start. It seems you're right and apache |
57 |
is colliding with itself, but I don't know why, as I don't see any other |
58 |
Listen directives. This is at best a stopgap because apache's now listening |
59 |
promiscuously, which I do not like at all. |
60 |
|
61 |
I'm hoping for more help, but my fallback is to save my config files, |
62 |
unmerge apache completely, re-emerge it and see if the default configuration |
63 |
can be made to work right. That might turn out to be a lot of work, for |
64 |
which read a lot of time. |
65 |
|
66 |
-- |
67 |
Kevin O'Gorman, PhD |