Re: [Apache] Vhost with mod_rewrite

From: Sam Watkins (swatkins_at_fastmail.fm)
Date: 01/20/05

  • Next message: Sam Watkins: "Re: Irregular crashes (freezes) on Sarge"
    Date: Thu, 20 Jan 2005 22:43:09 +1100
    To: debian-user@lists.debian.org
    
    

    On Wed, Jan 19, 2005 at 11:17:52PM +0100, Gob42 wrote:
    > 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.

    On Thu, Jan 20, 2005 at 11:32:52AM +0000, Jon Dowland wrote:
    > 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.

    I think the OP was hoping mod_rewrite would rewrite his configuration
    files for him. It definitely won't do that.

    In case you don't know how to do what Jon suggested, try something like
    this:

    #!/usr/bin/perl -p
    BEGIN { $domain = shift; }
    s/domaine\.tld/$domain/g;

    That will change the "domain.tld" in your example to a domain name you
    pass on the command line.

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Sam Watkins: "Re: Irregular crashes (freezes) on Sarge"

    Relevant Pages

    • Re: [Apache] Vhost with mod_rewrite
      ... > actual configuration is like this one but for all my domains. ... It matches on the path portion of a ... a perl script to fill in the blanks whenever you add a new vhost, ...
      (Debian-User)
    • Re: show / copy pre-shared key in plaintext
      ... configured an appropriate tftp-server command. ... When you hard set that within a configuration ... pix uses that to get it's config at every boot. ...
      (comp.dcom.sys.cisco)
    • Re: show / copy pre-shared key in plaintext
      ... configured an appropriate tftp-server command. ... When you hard set that within a configuration the ... pix uses that to get it's config at every boot. ...
      (comp.dcom.sys.cisco)
    • Re: networking problem
      ... > Static IP address configuration in Windows XPe environment HOWTO ... > To be able to be pingable with one ethernet card in your target machine, ... > Network Command Shell ... > Command Shell Interface Context ...
      (microsoft.public.windowsxp.embedded)
    • Re: Repost: Code behind events are not firing
      ... IE in a separate window through http. ... unchecked in the file type configuration. ... When a browser runs Word on the command line, ...
      (microsoft.public.vsnet.vstools.office)