You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kai Hendry <he...@cs.helsinki.fi> on 2004/07/16 10:30:55 UTC

Re: [users@httpd] Optimizing Virtual host(s) configuration on apache 1.3 or 2

On Thu, Jul 15, 2004 at 07:53:20 -0400, Joshua Slive wrote:
> Doing DocumentRoot in .htaccess would defeat the whole purpose of
> mod_vhost_alias, which is to set the DocumentRoot based on the
> hostname.  It sounds like you should exclude this vhost from
> mod_vhost_alias.  You can do this as follows:

In the case of my svn repository I agree, but for example I have a site
where directory index is needed and now shows up in the URL all the
time:
http://trip.natalian.org/moin.cgi/FrontPage
It used to be just:
http://trip.natalian.org/FrontPage

I guess I need to fix this with a rewrite rule.

And it would be nice to do Alias from .htaccess. Umm, rewrite rule
again? /me shivers...




Your vhost suggestions did the trick btw!
http://svn.natalian.org/debian/configuration/bilbo/httpd.conf

Thank you very much, =)

---------------------------------------------------------------------
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