W. Chris Shank on Wed, 12 Jun 2002 22:50:15 +0200 |
Thanks Everyone!!! Vodka martini's are on me!!!!! > You want 'name based' virtual hosting. (see the apache docs, but > basically, create two <VirtualHost> entries with the requisite > ServerName entries) It uses the Host: header in the http request to > determine which virtual to pass the request off to. > > This will not work with https:// because there is a chicken and egg > problem: the server needs to decode the secure request in order to > determine the Host: header's contents, but it needs the Host: header to > decode the secure request. > > --Philip > > On Wed, Jun 12, 2002 at 04:35:03PM -0400, Kyle R . Burton wrote: >> > 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 >> > > ______________________________________________________________________ > 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 ______________________________________________________________________ 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
|
|