El Thu, Jan 20, 2005 at 11:32:52AM +0000 Jon Dowland ha dit: > On Wed, Jan 19, 2005 at 11:17:52PM +0100, Gob42 wrote: > > Hi, > > > > I want to set up virtual host with sub-domain using mod_rewrite. My > > actual configuration is like this one but for all my domains. > > <snip> > > > Thanks a lot. > > This is not what mod_rewrite is for. It matches on the path portion of a > URL, not the domain portion. Someone can correct me if I'm wrong. it can also match the domain portion, e.g. i use the following to emulate virtual hosts with https://: RewriteCond %{HTTP_HOST} ^bcn\.devel\.indymedia\.org$ [NC,OR] RewriteCond %{HTTP_HOST} ^barcelona\.devel\.indymedia\.org$ RewriteRule ^/(.*) http://bcn.devel.indymedia.org/$1 [P,L] m. -- Usually when people are sad, they don't do anything. They just cry over their condition. But when they get angry, they bring about a change (Malcolm X) ( ( ( i ) ) ) http://indymedia.org ( ( ( i ) ) ) .''`. using free software / Debian GNU/Linux | http://debian.org : :' : `. `'` gpg --keyserver keys.indymedia.org --recv-keys B9A88F6F `-
Attachment:
signature.asc
Description: Digital signature