Kyle R . Burton on Wed, 12 Jun 2002 22:40:15 +0200


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

Re: [PLUG] OT: Apache configuration question


> yes, thats called virtual hosting. 
> 
> some examples here at the apache site:
> http://httpd.apache.org/docs/vhosts/examples.html

To get it to depnd on the path (and not just the reported host name) portion
of the URI, you could use Apache's uri rewriting.  The rules look something 
like:

  RewriteEngine on
  RewriteRule ^(.*\/pas\/.*)$  http://%{HTTP_HOST}:8200$1 [P]

That rule says to forward (proxying) the request to port 8200 on the 
same host if the url has '/pas/' in it.

Kyle

> jondz
> 
> > 
> > is there a way to configure apache such that 2 seperate URLs that are bound
> > to the same IP address can server up seperate sites? meaning, apache would
> > read the requested URL from the browser, figure out the site you are looking
> > for and server pages from that site, even though it may not be the site you
> > would see if you typed the IP in directly?
> > 
> > i've got a bottle of grey goose vodka riding on this question.
> > 
> > thanks for the help.
> > 
> > -chris  
> 
> 
> ______________________________________________________________________
> Philadelphia Linux Users Group       -      http://www.phillylinux.org
> Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
> General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug
> 

-- 

------------------------------------------------------------------------------
Wisdom and Compassion are inseparable.
        -- Christmas Humphreys
mortis@voicenet.com                            http://www.voicenet.com/~mortis
------------------------------------------------------------------------------

______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug