Le 12/01/2011 15:17, Ryan Schmidt a écrit :
On Jan 12, 2011, at 08:12, Jehan PROCACCIA wrote:
Ryan Schmidt wrote:
Remove the lines:
Alias /svn "/home/svn"
<Directory /home/svn>
AllowOverride all
</Directory>
Apache is confused because you have told it you want it to serve /svn as static files located in
/home/svn (the Alias directive and the<Directory /home/svn> section) and also that you
want it to serve /svn as a collection of Subversion repositories (the<Location /svn>
block); use only one or the other, depending on what you want (probably you want the<Location
/svn> block only).
unfortunalty that doesn't solve my case, I'am still facing the "301" pb
There is no<Directory> directive in my case, here's what I have:
Alias /disi /var/svn/disi
<Location /disi>
DAV svn
SVNParentPath /var/svn/disi
[snip]
The Directory block wasn't the problem; it was merely unnecessary. The problem
is the Alias directive. Remove the line:
Alias /disi /var/svn/disi
Yes, removing "Alias /disi /var/svn/disi" it goes a step further
I wonder how apache knows now that /disi is really loacated at
/var/svn/disi then !?
because of SVNParentPath /var/svn/disi possibly ?
I said a "step further" because now I am facing a permission problem
$ svn import . --username disi "http://svn.it-sudparis.eu/disi/disi_pj1"
-m "initial"
Authentication realm: <http://svn.it-sudparis.eu:80> TMSP: Login with
user id
Password for 'disi':
svn: Can't create directory
'/var/svn/disi/disi_pj1/db/transactions/0-1.txn': Permission denied
Do apache needs to have RW on /var/svn/disi/* ?
for now it is user svn only
# ls -al /var/svn/disi/disi_pj1/
total 36
drwxrwxr-x 7 svn apache 4096 Jan 11 17:40 .
drwxrwxr-x 3 svn apache 4096 Jan 12 11:20 ..
drwxrwxr-x 2 svn svn 4096 Jan 11 17:40 conf
drwxrwxr-x 2 svn svn 4096 Jan 11 17:40 dav
drwxrwsr-x 5 svn svn 4096 Jan 11 17:40 db
-r--r--r-- 1 svn svn 2 Jan 11 17:40 format
drwxrwxr-x 2 svn svn 4096 Jan 11 17:40 hooks
drwxrwxr-x 2 svn svn 4096 Jan 11 17:40 locks
-rw-rw-r-- 1 svn svn 229 Jan 11 17:40 README.txt
is it a security pb to allow apache RW evrywhere below that ?