httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kai Hendry <hen...@cs.helsinki.fi>
Subject Re: [users@httpd] Optimizing Virtual host(s) configuration on apache 1.3.31
Date Thu, 15 Jul 2004 21:21:39 GMT
On Thu, Jul 15, 2004 at 10:02:50 -0400, Joshua Slive wrote:
> On Thu, 15 Jul 2004 16:52:14 +0300, Kai Hendry <hendry@cs.helsinki.fi> wrote:
> > Can I configure apache to automagically look in
> > /web/subdomain.mydomain.org for a vhost on the ip of my server?
> 
> I think you are looking for mod_vhost_alias. See:
> http://httpd.apache.org/docs-2.0/mod/mod_vhost_alias.html

Excellent. I've got it going, but some of my sites are a little tricky
to convert to a vhost. For example:

bilbo$ cat /etc/apache/conf/svn.natalian.org.conf
    CustomLog /var/log/apache/svn.natalian.org-access_log combined

    ServerAdmin spam@natalian.org
    ServerName svn.natalian.org

    DocumentRoot /usr/lib/cgi-bin/viewcvs.cgi
    RewriteEngine On
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory /usr/lib/cgi-bin>
            SetHandler cgi-script
            Options ExecCGI
    </Directory>

    Alias /viewcvs/ /usr/share/viewcvs/

    LogLevel warn

    ServerSignature On


Ok I can lost the customlog as I understand apache can't have many files
open when I am running lots of vhosts.

But how I do DocumentRoot, ScriptAlias and Alias in
/web/svn.natalian.org 's .htaccess? 

They seem not allowed! :/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message