Rafael, Apparently it was easier than I initially thought. All you have to do is add the appropriate redirection rules to Cherokee. I posted a quick how-to here: http://www.ututech.com/2010/10/configuring-yourls-to-work-with-cherokee-web-server/
I have not *extensively* tested this, but it seems to work on my box. Jeff On Tue, Oct 5, 2010 at 11:28 PM, Jeff Johnson <[email protected]> wrote: > Rafael, > It looks like, based on a quick overview of the yourls source code, that > it utilizes only a few rules for .htaccess. The remainder of the URL > handling is done via the applications MySQL database. Part of the install > process does seem to check and see if Apache is the webserver and if > mod_rewrite is enabled. > > Then, it inserts the following into the .htaccess file: > > 'RewriteEngine On', > 'RewriteBase '.$path.'/', > 'RewriteCond %{REQUEST_FILENAME} !-f', > 'RewriteCond %{REQUEST_FILENAME} !-d', > 'RewriteRule ^([0-9A-Za-z]+)/?$ '.$path.'/yourls-go.php?id=$1 [L]', > 'RewriteRule ^([0-9A-Za-z]+)\+/?$ '.$path.'/yourls-infos.php?id=$1 [L]', > 'RewriteRule ^([0-9A-Za-z]+)\+all/?$ > '.$path.'/yourls-infos.php?id=$1&all=1 [L]', > > > It would require some modifications to the yourls source code to adjust > these apache specific pieces and using the redirection handler ( > http://www.cherokee-project.com/doc/modules_handlers_redir.html) to get > yourls to operate. > > I haven't investigated the possibility thoroughly and there may be other > challenges to making it work, but it seems that it is quite possible with a > few adjustments. > > Jeff > > > On Tue, Oct 5, 2010 at 10:57 PM, Rafael Bonifaz <[email protected]> wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hi all, >> >> First of all, I have to tell you that I love Cherokee. I am using it >> specially for my blog and some other sites. Now I want to play a bit >> with shorten urls tools and I found yourls[1]. It looks like a nice >> tool and it was easy to install, but it need rewrite urls rules, and >> in their documentation they only have documentation for Apache and its >> .httpaccess file[2]. >> >> At the moment I want to use yourls in the document root of a virtual >> server, not a directory. Anyone can suggest the rules needed? I have >> to admit that I am a complete ignorant regarding to url rewrite. >> >> Cherokee works great for well known web applications such as >> Wordpress, Joomla, Drupal, etc..., but for not that popular >> application: yourls, Elgg (my next challange), and I am sure that a >> lot more it gets complicated. I like the Wizards, but would be nice, >> don't know if possible, to have a way to convert an Apache .htaccess >> file into the needed rules for Cherokee. >> >> Also it would be great to have a way to import and export Wizards >> (templates). I believe that newer versions of Cherokee would have >> more Wizards than older versions. At the moment I am using the Ubuntu >> 10.4 server version. Sometimes I am bit lazy and would trust in the >> distro for security updates. That means older software version. >> However, it would be nice if I could import newer Wizards for >> applications that are not listed in my actual version. >> >> Well, hope I can get an answer for the yourls question and >> congratulations for the great project. >> >> [1] http://yourls.org/ >> [2] http://code.google.com/p/yourls/wiki/htaccess >> >> Best regards, >> >> Rafael >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.10 (GNU/Linux) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ >> >> iEYEARECAAYFAkyr5YwACgkQ/R157VJtzzGY6QCfe11Wtf0I5HmppBZzC2Y6T5qK >> mrsAn0mqJqDkMarr+boiz0Td+pZifkg9 >> =8gnv >> -----END PGP SIGNATURE----- >> >> _______________________________________________ >> Cherokee mailing list >> [email protected] >> http://lists.octality.com/listinfo/cherokee >> > >
_______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
