Announcement

Collapse
No announcement yet.

Error 301 Moved Permanently

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error 301 Moved Permanently

    Hi i try to install svn Server on Apache2 but i don't bring it to work. If i fix one error next one appears.

    I hope you can help me.

    I installed svn as module for Apache:

    Following Config is in my httpd.conf

    <VirtualHost *:80>
    DocumentRoot /home/s/svn/
    ServerName svn.thocc.de
    IndexOptions
    DirectoryIndex index.htm index.html index.shtml start.htm start.html start.shtm index.php

    <Location /insu>
    DAV svn
    SVNPath /home/s/svn/insu

    # how to authenticate a user
    AuthType Basic
    AuthName "Subversion repository"
    AuthUserFile /srv/www/passwd/insu.htpasswd

    # only authenticated users may access the repository
    Require valid-user

    </Location>

    </VirtualHost>

    When i open the site with my browser i get the project. But when i try to open it with subclipse i get this text:

    Error validating Location .......

    layer request failed
    svn:PROPFIND request failes on '/insu'
    svn:PRPFIND of '/insu': 301 Moved Permanently (http://svn.thocc.de)

    Hope you can help me.

    MfG

    CC


    Edit, i tried again.. without the Virtualhost there is no problem, but then i can access it by *.thocc.de/insu

    it would be nice to find another possibility

  • #2
    I had this error not to long ago. This is because apache is getting confused. First you define DocumentRoot /home/s/svn/ so it looks and finds a insu directory then it also sees it as a special location so it doesnt know what to do. You need to remove the DocumentRoot directive that should fix it.
    John (Vestige) Downey
    http://www.catdevnull.net

    Comment


    • #3
      Oh thank you very much.

      It took me hours. I don't know how many sites i visited and how many texts i read. But none of them solved my problem.


      Now everything seems to be fine.

      Afterwards it's logic what went wrong. Fine fine fine.

      I was nearly to give up

      So and now it's closing time. German nightlife is waiting.

      Comment


      • #4
        thanks. i had this problem too. but i needed, that virtual host have a DocumentRoot So, i create sub-folder (example: /home/s/svn/conf) and set its as DocumentRoot.

        Comment

        Working...
        X