[Techtalk] Hosting multiple websites from one user on Apache
leslie at freakybutt.net
leslie at freakybutt.net
Fri Jan 11 00:39:37 EST 2002
Is there any way you could just paste your httpd.conf in an email for me
to have a look at it? I'm not sure if the lists allow such a long email so
you could send it to leslie at freakybutt.net if that is a problem. If so I
can take a look at it and see if maybe I can see what's going on. Because
from what you say it sounds a bit confusing as to what the problem could
be.
- Leslie
On Thu, 10 Jan 2002, Amber wrote:
> I am pulling up different websites for each host. For example. I have
> thedreamer.cx hosted out of my public_html directory, I want geekpixie.com
> to be hosted out of a different directory ( tried aiming the doc root at
> another folder in my home directory but no cigar) since it is an entirely
> different site.
> So not the same website for the hosts, different hosts, different sites as
> well. :)
> Thanks for the suggestion though! Will be useful for other things I hadn't
> started on yet.
> Thanks,
> Amber
>
>
> ----- Original Message -----
> From: <leslie at freakybutt.net>
> To: Amber <delirium at javanet.com>
> Cc: techtalk <techtalk at linuxchix.org>
> Sent: Thursday, January 10, 2002 4:06 AM
> Subject: Re: [Techtalk] Hosting multiple websites from one user on Apache
>
>
> >
> >
> > On Wed, 9 Jan 2002, Amber wrote:
> >
> > > Hey all, I have been poking around with this for a few days now, and
> > > haven't gotten it to work quite right yet. Does anyone know what has to
> > > be done in httpd.conf to get more than one site hosting off of a users
> > > directory? I am setting the document root as just another folder in my
> > > home directory, but that doesn't work. Is there a specific way I have to
> > > reference it? Or a specific location it has to be in? Would appreciate
> > > any suggestions.
> > >
> > > Thanks,
> > > Amber
> > >
> >
> > Are you pulling up the same website for all of the hosts? If so it sounds
> > like is that you do not have NamVirtualHost specified in your
> > httpd.conf. If you do not have NameVirtualHost while hosting websites on
> > the same IP address when pulling up a website on that IP address apache
> > will pull up the first VirtualHost in the httpd.conf that pertains to that
> > IP Address.
> >
> > Here is a portion of my httpd.conf that should help you with your problem
> >
> > <snip>
> >
> > ### Section 3: Virtual Hosts
> > #
> > # VirtualHost: If you want to maintain multiple domains/hostnames on your
> > # machine you can setup VirtualHost containers for them. Most
> configurations
> > # use only name-based virtual hosts so the server doesn't need to worry
> about
> > # IP addresses. This is indicated by the asterisks in the directives
> below.
> > #
> > # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
> > # for further details before you try to setup virtual hosts.
> > #
> > # You may use the command line option '-S' to verify your virtual host
> > # configuration.
> >
> > #
> > # Use name-based virtual hosting.
> > #
> > NameVirtualHost *
> > NameVirtualHost *:443
> >
> > </snip>
> >
> > What the NameVirtualHost does is listen on a certain IP address or IP
> > address and port. The first NameVirtualHost * tells apache to listen on
> > all IP's if you just want it to listen on a specific IP you can replace
> > the asterisk for the IP address. The second line NameVirtualHost *:443
> > tells apache to listen on all IP addresses on the port 443. I use this for
> > SSL.
> >
> > Hope this helps you out, if not just let me know and I'll see what else I
> > can do. :)
> >
> > - Leslie
> >
> >
>
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://www.linuxchix.org/mailman/listinfo/techtalk
>
More information about the Techtalk
mailing list