the * setting won't work at all... it only starting server pages after i changed the * to 127.0.0.1
Seems like macosx changed enough, and added other things, to make it more... fun... to set thing sup. -- web: www.wormhole5.org current: calgary, ab ----- Original Message ----- From: Shawn Grover <[EMAIL PROTECTED]> Date: Wednesday, August 4, 2004 11:45 am Subject: RE: [clug-talk] [OSX] apache and forbidden error. > You should probably rely on host name resolution for the virtual > hosts. This means not specifying an IP address (using the *'s), > and letting Apache match the requested server name to one of the > Virtual Hosts server name. This makes virtual hosts much easier > to manage (IMO). > > If you want to learn about virtual hosts in detail, I would > recommend either the Apache web site (http://httpd.apache.org/docs- > 2.0/vhosts/ if you are using Apache 2, or > http://httpd.apache.org/docs/vhosts/index.html if you are using > Apache 1.3.x), or an O'Reily book called "Apache The Definitive > Guide" (ISBN: 0-596-00203-3). Both resources cover the details > you need. That, and it's better to get the information from the > source... > BTW, the info I gave you was based on my Apache 2.0.x > installation. So if you are using 1.3.x, then the info might not > be accurate. > > HTH > > Shawn > > > -----Original Message----- > From: [EMAIL PROTECTED] [EMAIL PROTECTED] > Behalf Of NATHAN WAINWRIGHT > Sent: Wednesday, August 04, 2004 11:14 AM > To: CLUG General > Subject: Re: [clug-talk] [OSX] apache and forbidden error. > > > osx ignores /etc/hosts.. .unless you change a program file... > can't figure out how to change that first tho. > > you use ... net info manager... and 'add' entries... i'll try > changing the IP in the virtual name hosting... and play with net > info as well. > > -- > web: www.wormhole5.org > current: calgary, ab > > ----- Original Message ----- > From: bogi <[EMAIL PROTECTED]> > Date: Wednesday, August 4, 2004 10:40 am > Subject: Re: [clug-talk] [OSX] apache and forbidden error. > > > Ok > > Nope. > > You have to tell apache the domain name you want to see, so if > you > > cant,fake it. put your desired domain names in /ets/hosts, then > > like 111.111.111.111 domain1.com domain2.com domain3.com > > then type domain1.com in your browser to get to domain1 virtual host > > on apache server etc etc > > Cheers > > Szemir > > > > > > On August 4, 2004 02:52, Nathan wrote: > > > that would answer to why nathanwainwright.com would work... > but > > not the > > > other one..... > > > > > > hrm... probably should use the servers IP ... instead of > > 127.0.0.1 .... > > > > > > grah. tomorow. its 2am. > > > > > > bogi wrote: > > > >No > > > >apache should run standalone, no inetd please. > > > >What he ment is: setup your main site as a virtual host, just > > like he > > > >explaind, and if you make that site the first virtual host in > > the config > > > >file, then your server will respond with that site if someone > > accesses> > your server with no host header (ie http 1.0 or just > > an ip-address). > > > > > > > >Cheers > > > >Szemir > > > > > > > >On August 4, 2004 01:37, Nathan wrote: > > > >>K, I do have apache running standalone... would the option > of > > inetd be > > > >>a better idea? and what else would i need to setup? > > > >> > > > >>Also, where would I find some info on setting up the system > > like your's > > > >> is? > > > >> > > > >>At this point i'll try anyways. > > > >> > > > >>thanks very much. > > > >> > > > >>-- nathan > > > >> > > > >>Shawn wrote: > > > >>>Your config file should have a line like so: > > > >>> > > > >>>NameVirtualHost * > > > >>> > > > >>>If you use a *, you're saying that all incoming > (destination) > > IPs will > > > >>> be checked to see if they are to be handled by a virtual > > host. This is > > > >>> done by the <VirtualHost> directives like so: > > > >>> > > > >>><VirtualHost *> > > > >>> > > > >>>Using a * here says that all requests (and all ports) will > be > > compared> >>>against the server name and/or alias. So, a full > > <VirtualHost>> >>> directive might look like so: > > > >>> > > > >>><VirtualHost *> > > > >>> ServerName www.mysite.com > > > >>> ServerAlias mysite.com > > > >>> DocumentRoot /home/www > > > >>></VirtualHost> > > > >>> > > > >>>By replacing the astrix in the VirtualHost directive, you > can > > have> >>> Apache only respond as the virtual host if the request > > is for a > > > >>> specific IP address and/ or port (i.e. <VirtualHost > > 192.168.0.1:8080>.> >>> > > > >>>I would guess from your description, you are trying to mix > a > > standalone> >>>server with virtual hosting. This can be done, > but > > this is the type of > > > >>>area where you might need to mess around with the value for the > > > >>>NameVirtualHost. > > > >>> > > > >>>I found it easier to setup my main site as a virtual site - > > so every > > > >>> site on my server is a virtual site, and by relying on the > > requested> >>> host name, all improper requests are handled by > my > > default (i.e. first) > > > >>> virtual host. (I'm sure the Apache Guru's on the list > will > > likely> >>> correct me on some points, but this is how my server > > is working....) > > > >>> > > > >>>With regards to OSX, I don't think the problem would be > platform> > >>> specific, but is likely more in the config file > for the > > Virtual Hosts. > > > >>> However, I've never set up Apache on a Mac before, so take > > this post > > > >>> with a grain of salt.. :D > > > >>> > > > >>>HTH > > > >>> > > > >>>Shawn > > > >>> > > > >>>On Wednesday 04 August 2004 00:22, Nathan wrote: > > > >>>>anyone on the list ever setup virtual hosting with apache, > > on OSX? > > > >>>> > > > >>>>if so, some help. > > > >>>> > > > >>>>I setup things with Netinfo Manager, and then > > /etc/httpd/httpd.conf> >>>> > > > >>>>no avail... can't see anything locally now. > > > >>>> > > > >>>>any ideas, most helpful > > > >>>> > > > >>>>-- nathan > > > >>>> > > > >>>> > > > >>>>_______________________________________________ > > > >>>>clug-talk mailing list > > > >>>>[EMAIL PROTECTED] > > > >>>>http://clug.ca/mailman/listinfo/clug-talk_clug.ca > > > >>> > > > >>>_______________________________________________ > > > >>>clug-talk mailing list > > > >>>[EMAIL PROTECTED] > > > >>>http://clug.ca/mailman/listinfo/clug-talk_clug.ca > > > > > > > >_______________________________________________ > > > >clug-talk mailing list > > > >[EMAIL PROTECTED] > > > >http://clug.ca/mailman/listinfo/clug-talk_clug.ca > > > > > > _______________________________________________ > > clug-talk mailing list > > [EMAIL PROTECTED] > > http://clug.ca/mailman/listinfo/clug-talk_clug.ca > > > > > _______________________________________________ > clug-talk mailing list > [EMAIL PROTECTED] > http://clug.ca/mailman/listinfo/clug-talk_clug.ca > > _______________________________________________ > clug-talk mailing list > [EMAIL PROTECTED] > http://clug.ca/mailman/listinfo/clug-talk_clug.ca > _______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca

