Re: Apache reads from wrong DocumentRoot
Hi Mark,
I have a permanent IP on the connection. I tried doing what you said,
but that shouldn't make a difference, and it didn't either.
Apache still "ignores" my virtual hosts, and I don't know why.
Let me explain a bit further:
My users have their webpages in /var/www/<username>
These dirs have correct permissions, and all virtual hosts are set to
read from these directories. An example:
<VirtualHost foouser.foo.com>
DocumentRoot /var/www/foo
ServerName foouser.foo.com
..
..
</VirtualHost>
I have a suspiscion to my <Directory>-directives, but I'm not too good
with that part.
Can someone tell me how I should set a directive properly for
/var/www/<username>?
I use UserDir /var/www in access.conf, will a global DocumentRoot
/var/www make apache interpret UserDir as /var/www/var/www?
There are many things here which may be the cause of the problem, and so
I would appreciate if someone could help me a bit further.
On Fri, Apr 04, 2003 at 03:54:13PM +1200, Mark Munro wrote:
> Hi H?vard,
>
> Changing your isp probably changed your ip address.
>
> The NameVirtualHost takes an ip address.
> The ServerName is a directive.
>
> The syntax that I use for this part of the apache configuration look
> roughly thus:
>
> NameVirtualHost aaa.bbb.ccc.ddd
>
> <VirtualHost aaa.bbb.ccc.ddd>
> ServerName site1.domain.co.nz
> DocumentRoot /servers/site1/html
> .
> .
> </VirtualHost>
>
> <VirtualHost aaa.bbb.ccc.ddd>
> ServerName site2.domain.co.nz
> DocumentRoot /servers/site2/html
> .
> .
> </VirtualHost>
>
> You will need a fixed ip address. i.e. Determine your ip address
> when you connect and (re)write the configuration dynamically. Maybe
> from a template, maybe from a database.
>
> Regards,
> Mark Munro
>
> On Fri, 2003-04-04 at 07:43, The sky is the limit wrote:
> > Hi,
> >
> > after I changed ISP yesterday, my APache suddenly decided to totally
> > ignore my virtual host directives and read from DocumentRoot
> > /usr/htdocs, something I have never set it to do.
> >
> > I use dyndns for virtual hosts, and my apache vhost config is
> >
> > NameVirtualHost foo.dyndns.org
> >
> > <VirtualHost blabla.foo.com>
> > DocumentRoot /usr/foo/dir/
> > ...
> > </VirtualHost>
> >
> > Why does apache apparently "ignore" this?
> >
> > --
> > Med vennlig hilsen / Yours sincerely
> >
> > H?vard Stranden, <havarden@cloudchaser.net>
> > (GPG key available at http://www.cloudchaser.net/om/?p=gpg)
> >
> > "The box said Windows 95 or better, so I installed Linux..."
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-apache-request@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> >
>
--
Med vennlig hilsen
Håvard Stranden, <havarden@cloudchaser.net>
(GPG key available at http://www.cloudchaser.net/om/?p=gpg)
"The box said Windows 95 or better, so I installed Linux..."
Reply to: