[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Debian install in site subdirectory

From: Bob Proulx <bob_at_proulx.com>
Date: 2006-08-19 19:12:37 CEST

Ryan Schmidt wrote:
> Albert Krawczyk wrote:
> I'm not sure where it is in Debian or whatever Linux you're running,
> but somewhere there will be a configuration file for Apache, often
> called httpd.conf or apache.conf or something like that. In this file

Debian supports both apache version 1 and apache version 2
installations. I highly recommend using the "apache2" which is the
version 2 installation. But some users are still using the older
"apache" which is version 1 for reasons of their own. The style of
the configurations have changed between releases.

Using the "apache2" package on Debian the configuration file is
installed as a modular set of configuration files to make setting up
either standalone or virtual hosts very easy. In the case of virtual
hosts each virtual host will be in its own file. The files are
installed at /etc/apache2/sites-available/ with the default host
configuration in a default file and virtual host configurations in
files that you name and create there.

These are concatenated with the /etc/apache2/apache2.conf,
/etc/apache2/httpd.conf and the directory of /etc/apache2/conf.d/*
files. That list of multiple locations is there for compatibility
reasons. If a user wants to use the older configuration style they
can put all of their configuration in the httpd.conf file, for
example, and everything will work fine.

Of course this is off-topic for this list. More Debian specific help
can be found on the debian-users mailing list at lists.debian.org.

> there might be a virtual host for your main site, which might look
> something like this:
>
> <VirtualHost *:80>
> ServerName www.example.com
> DocumentRoot /root/public/website
> </VirtualHost>
>
> If your server doesn't use virtual hosts, then it'll be the same
> except the two lines <VirtualHost *:80> and </VirtualHost> won't be
> present.

Debian configures virtual hosts by default. Those lines will be in
the sites-available/default file.

> The repository files should be owned by the user Apache runs under,
> which depending on the server OS might be nobody, www, apache, or
> something else. Look for the line in the httpd.conf that starts
> with "User "; that'll tell you.

On Debian the default user running the apache web server is the
"www-data" user. This is set in the /etc/apache2/apache2.conf file.

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Aug 19 19:13:51 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.