On this topic - I am keen post 1.9.2 to look at developing a nicer URL 
structure for Codestriker that is more REST-like.  Jason mentioned this 
ages ago.  This will allow you to set access permissions for entire 
projects, since all topics belonging to a project will be in a separate 
sub-directory in Codestriker, eg:

http://myhost.com/codestricker/projectA
http://myhost.com/codestricker/projectA/topic1245
http://myhost.com/codestricker/projectA/topic1243
http://myhost.com/codestricker/projectB
http://myhost.com/codestricker/projectB/topic2222
http://myhost.com/codestricker/projectB/topic2223

Cheers,
David

Jason Remillard wrote:
> Hi,
> 
> I think the problem is that codestriker expects the "root" to be .. from 
> where the cgi directory
> is. If you really want to fix this, you can change the perl code to emit a 
> different html url.
> 
> package Codestriker::Http::UrlBuilder;
> 
> <snip...>
> 
>   # Check if the HTML files are accessible vi another URL (required for
>     # sourceforge deployment).  Check $Codestriker::codestriker_css.
>     my $htmlurl;
>     if (defined $Codestriker::codestriker_css &&
>       $Codestriker::codestriker_css ne "") {
>       $htmlurl = $Codestriker::codestriker_css;
>       $htmlurl =~ s/\/codestriker\.css//;
>     }
>     else {
>       # Standard Codestriker deployment.
>       $htmlurl = $query->url();
>       $htmlurl =~ s/codestriker\/codestriker\.pl/codestrikerhtml/;
>     }
>     $self->{htmldir} = $htmlurl;
> 
>     return bless $self, $type;
> }
> 
> change this line.
> 
> $htmlurl =~ s/codestriker\/codestriker\.pl/codestrikerhtml/;
> 
> To how you want to the URL structure to look. Without changing the perl code, 
> you are stuck with
> at least the 
> 
> codestriker/codestriker.pl
> codestrikerhtml
> 
> in your URL's. I seem to remember playing with this a long time ago. You may 
> run into some other
> minor problems when you remove codestriker.pl from the url. With a little bit 
> of perl changes it
> is definitly possible.
> 
> Thanks
> Jason.
> 
> --- Tim Casada <[EMAIL PROTECTED]> wrote:
> 
>> I am no apache expert and I am trying to have a "pretty" URL for usage 
>> with codestriker instead of something like 
>> "http://XXX.XXX.XXX.XXX/codestriker/codestriker.pl";.  I am using a 
>> virtualhost setup and am trying to map the root of the URL to the 
>> codestiker perl module.  Currently I'm using kind of the default config 
>> like this which does not work how I want it:
>>
>> Listen 80
>> NameVirtualHost XXX.XXX.XXX.XXX:80
>>
>> <VirtualHost XXX.XXX.XXX.XXX:80>
>> ServerName XXX.XXX.XXX.XXX
>> BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
>>
>> DocumentRoot /opt/codestriker/codestriker-1.9.2-rc1/cgi-bin/
>> DirectoryIndex codestriker.pl
>> AddDefaultCharset UTF8
>>
>>    Alias /codestriker/ /opt/codestriker/codestriker-1.9.2-rc1/cgi-bin/
>>    Alias /codestrikerhtml/ /opt/codestriker/codestriker-1.9.2-rc1/html/
>>
>>    <Location />
>>       AllowOverride None
>>       Options ExecCGI
>>       Order allow,deny
>>       Allow from all
>>       SetHandler cgi-script
>>    </Location>
>>
>>    <Directory "/opt/codestriker/codestriker-1.9.2-rc1/html/">
>>       AllowOverride None
>>       Allow from all
>>    </Directory>
>>
>> </VirtualHost>
>>
>> -- 
>> Tim Casada
>>
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Codestriker-user mailing list
>> Codestriker-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/codestriker-user
>>
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Codestriker-user mailing list
> Codestriker-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/codestriker-user
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Codestriker-user mailing list
Codestriker-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/codestriker-user

Reply via email to