Forum Moderators: phranque
I am having a bit of trouble having my cake and eating it too :)
I'm trying to config a test server to allow the team to develop on a new project. We are using Subversion and Apache 2.2.3 on a Linux FC6 machine. I have the run of the server so I can do any configs I need.
1. Basically I wrote a 'catchall' rule that forwards anything that doesn't meet a set list of extentions to an index page. (the php programming will take it from there). It works by itself no problem. The Directives are as Follows:
(in a <Directory> )
RewriteEngine on#extentions list
RewriteRule !(\.gif¦\.jpg¦\.jpeg¦\.png¦\.swf¦\.js¦\.css¦\.ico¦\.pdf)$ index.php [NC]
#fixes an exploit I found.
RewriteCond %{QUERY_STRING} .+
RewriteRule .* index.php
...Additionally I have a standard WebDAV configs
#prevents subversion folders from being output to the browser
<DirectoryMatch "^/.*/\svn">
Order deny,allow
Deny from all
</DirectoryMatch>#Establishes the DAV for SVN via apache
<Location /svn>
DAV svn
SVNPath /path/to/repos
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /path/to/auth-file
Require valid-user
</Location>
...But now comes the stickler. I'd like to be able to allow the team to check out a working copy in their home directories into a folder called pub and be able to view their changes by way of a url like:
www.mydomain.com/~username/rest/of/url
..AND.. I'd like it to work just like the main site with the catchall going to /home/username/pub/index.php. (unless of course it matches one of the extentions, we need to pipe that file through, but from their home directory, not the main site)
Here I've been trying all sorts of stuff with no good results.
Any help here would be really appreciated.
Thanks,
Greg