[Apache] Vhost with mod_rewrite

From: Gob42 (lgob42_at_free.fr)
Date: 01/19/05

  • Next message: Ishwar Rattan: "KDE-mail"
    Date: Wed, 19 Jan 2005 23:17:52 +0100
    To: debian-user@lists.debian.org
    
    

    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.

    <VirtualHost *>
     ServerName www.domaine.tld
     ServerAdmin admin@domaine.tld
     ServerAlias domaine.tld
     php_value include_path ".:/home/www/domaine.tld/www/php-include"
     DocumentRoot /home/www/domaine.tld/www/htdocs

     ErrorLog /var/log/apache/domaine.tld/error.log
     CustomLog /var/log/apache/domaine.tld/access.log full

     <directory /home/www/domaine.tld/htdocs>
          php_admin_value open_basedir "/home/www/domaine.tld/www"

          AllowOverride FileInfo AuthConfig Limit Indexes Options
          Options MultiViews SymLinksIfOwnerMatch +Includes +ExecCGI
    -FollowSymLinks

          <Limit GET POST OPTIONS PROPFIND>
                  Order allow,deny
                  Allow from all
          </Limit>

          <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
                  Order deny,allow
                  Deny from all
          </Limit>
     </directory>
    </VirtualHost>

    So for each domains, i create a file domain_tld.conf in the rep vhost.d
    . But i want to automatise this mechanism with mod_rewrite.
    I've installed mod_rewrite et now i want to do that, but i don't how...

    Can anyone help me, with an exemple?

    Thanks a lot.

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

  • Next message: Ishwar Rattan: "KDE-mail"

    Relevant Pages

    • cgi-bin not visible to apache with virtualhosts
      ... ServerAdmin paul@joe.com ... The first virtual host is the new one. ... I have not setup the cgi stuff for the main or user dir servers ... Email me by assembling this address: tinykitty /a/t/ ohmster dot com ~Ohmster ...
      (comp.os.linux.networking)
    • Re: problems with setup apache and virtual hosts file
      ... On 4/28/06, Trevor Tregoweth wrote: ... I am trying to set up apache with virtual host, have created 2 files, with ... ServerAdmin webmaster@localhost ... Did you restart apache? ...
      (Ubuntu)
    • Re: Apache Virtual Server
      ... >I tried to setup two virtual servers in our LAN. ... > ServerAdmin ... ... > CustomLog ... ... >virtual host, ...
      (alt.os.linux.suse)
    • Re: Ruby and Rail
      ... <IfModule mod_fastcgi.c> ... 2- I defined a virtual host (and not forgotten to write also in NetInfo utility -> machines) ... ServerAdmin myname@xxxxxxx ...
      (comp.lang.ruby)
    • problems with setup apache and virtual hosts file
      ... I am trying to set up apache with virtual host, have created 2 files, ... with the following config, i would really appreciate some help in ... ServerAdmin webmaster@localhost ...
      (Ubuntu)