Re: [Apache] Vhost with mod_rewrite

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

  • Next message: Gerardo Ballabio: "Help, sound isn't working"
    Date: Thu, 20 Jan 2005 16:19:26 +0100
    To: debian-user@lists.debian.org
    
    

    Thanks for your answers.

    I don't want tu use a perl script or in any other language, because i
    don't want to relod apache each time i add a domain or a sub-domain.

    My goal is to do the configuration just one time and after never modify it.

    Does someone do something like that? It is possible or not?

    Jacob S a écrit :

    >On Wed, 19 Jan 2005 23:17:52 +0100
    >Gob42 <lgob42@free.fr> 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.
    >>
    >><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...
    >>
    >>
    >
    >If you want the new domain config created automatically, you're probably
    >best writing a bash script that uses sed, or a perl script.
    >
    >Alternatively, there is the mod_vhost_alias module for apache that
    >allows you to have multiple virtual domains without having to setup any
    >additional config files when you add a new domain. Documentation links
    >below.
    >
    >Apache 1.3: http://httpd.apache.org/docs/mod/mod_vhost_alias.html
    >Apache 2.0: http://httpd.apache.org/docs-2.0/mod/mod_vhost_alias.html
    >
    >HTH,
    >Jacob
    >
    >
    >
    >

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

  • Next message: Gerardo Ballabio: "Help, sound isn't working"

    Relevant Pages

    • Re: Federated CGI to CGI
      ... Now, ideally, users who want to configure each of the regional servers, ... configuration databases, pull methods, etc. ... change, then Javascript picks up the data, posts to the Perl script on ... You can use the WWW::Mechanize module to allow a perl script to interact with web pages as a browser would, or you can use WWw::Curl::easy to post a form, or you can use LWP, or you can use create the POST request using HTTP::Request and send it using Net::HTTP, or you can use the "curl" external program to post the form, or you can use the "lynx" external program to post, or you can use the "wget" external program, or ... ...
      (comp.lang.perl.misc)
    • Re: [Apache] Vhost with mod_rewrite
      ... I have looked the documentation of apache with your url and i created ... ServerName %0 ... Apache is down with this configuration... ...
      (Debian-User)
    • Extended MAPI Fun
      ... When creating the temporaryprofile and calling configureMsgService, ... i tripple checked and the servername is supplied. ... The mailboxname is correctly displayed in the configuration dialog, ... if Failedthen exit; ...
      (comp.lang.pascal.delphi.misc)
    • Re: natted apache2 virtual hosts
      ... > my configuration is below. ... > lynx like so: ... ServerName, but that may have been due to my nameless worm catching ... > Syntax OK ...
      (comp.unix.bsd.freebsd.misc)
    • perl script to remove entire tags!?
      ... the apache vhost.conf has many sites but when one is deleted, ... ServerName is always unique though. ... AllowOverride AuthConfig Limit ...
      (comp.lang.perl.misc)