Re: [Codestriker-user] Pretty URL with Virtual Hosts
Brought to you by:
sits
|
From: Jason R. <jre...@ya...> - 2006-08-09 02:18:00
|
Hi David. I did some work on this and dumped it because I was having a bad time making the codestriker urls fit into pure url hierarchy. I think the best I could do was something like this. codestriker/search codestriker/newtopic codestriker/metrics codestriker/projects/projecta codestriker/projects/projecta/topics/number/ codestriker/projects/projecta/topics/number/files/1 codestriker/projects/projecta/topics/number/comments/ codestriker/projects/projecta/topics/number/comments/number codestriker/projects/projecta/topics/number/metrics etc. Plus it would be good to be able to not bust the existing url scheme considering we send the urls out in emails. I think the coding would be pretty easy. It is a matter of thinking hard about getting urls mapped correctly. Thanks Jason. --- David Sitsky <si...@us...> wrote: > 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 <tim...@sh...> 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 > >> Cod...@li... > >> 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 > > Cod...@li... > > 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 |