Re: VirtualHost Issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 19 April 2007 11:40:18 Matt Fielding wrote:
> > > here is an example of one of my virtual host settings that are is in
> > > etc/apache22/includes/virtual
> >
> > # typo on the line above should read etc/apache22/includes/virtual.conf
> >
> > > <VirtualHost *:80>
> > >       DocumentRoot /usr/virtualwebs/my.domain.net
> > >       ServerName www.my.domain.net
> > >         Options Indexes
> > >       AcceptPathInfo On
> > >       ServerAdmin webmaster@xxxxxxxxxxxxx
> > >       AddDefaultCharset utf-8
> > >       ScriptAlias /mailman "/usr/local/mailman/cgi-bin"
> > >       Alias /pipermail "/usr/local/mailman/archives/public"
> > >       Alias /icons/ "/usr2/virtualwebs/icons/"
> > > </VirtualHost>
> > > # Now make sure apache has access to every directory it needs with an
> >
> > entry
> >
> > > like:
> > > <Directory /usr/virtualwebs/my.domain.net/>
> > >       order allow,deny
> > >       allow from all
> > > </Directory>
> > > # repeat that for any directories pointed to by an Alia directive
> > >
> > > so a second one follows the same pattern:
> > > <VirtualHost *:80>
> > >       DocumentRoot /usr/virtualwebs/my.domain2.net
> > >       ServerName www.my.domain2.net
> > >         Options Indexes
> > >       AcceptPathInfo On
> > >       ServerAdmin webmaster@xxxxxxxxxxxxxx
> > >       AddDefaultCharset utf-8
> > >       ScriptAlias /mailman "/usr/local/mailman/cgi-bin"
> > >       Alias /pipermail "/usr/local/mailman/archives/public"
> > >       Alias /icons/ "/usr2/virtualwebs/icons/"
> > > </VirtualHost>
> > > <Directory /usr/virtualwebs/my.domain2.net/>
> > >       order allow,deny
> > >       allow from all
> > > </Directory>
> > >
> > > david
>
> I'm still getting the same problem. Which ever virtualhost is listed first
> is the one that works on both domains, and it is now setup like this:
>
> <VirtualHost *:80>
>        DocumentRoot "C:/Documents and Settings/Owner/Desktop/htdocs/ong/"
>        ServerName ong.kicks-ass.net
>        Options Indexes
>        AcceptPathInfo On
>        ServerAdmin itzmattu@xxxxxxxxx
> </VirtualHost>
> <Directory "C:/Documents and Settings/Owner/Desktop/htdocs/ong/">
>        order allow,deny
>        allow from all
> </Directory>
> <VirtualHost *:80>
>        DocumentRoot "C:/Documents and Settings/Owner/Desktop/htdocs/"
>        ServerName mattu.isa-geek.com
>        Options Indexes
>        AcceptPathInfo On
>        ServerAdmin itzmattu@xxxxxxxxx
> </VirtualHost>
> <Directory "C:/Documents and Settings/Owner/Desktop/htdocs/">
>        order allow,deny
>        allow from all
> </Directory>

What are your entries in httpd.conf for Serverroot and Documentroot?
Why do you not have
htdocs/kicks-ass as well as
htdocs/ong?
What do you get from:
/var/log/httpd-error.log

david

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux