From: Scott C. <sc...@sc...> - 2011-05-31 19:39:21
|
Hi Vipin, I know exactly enough about mod_rewrite to do the things I need to do (probably a little less, actually :-) and what you're describing isn't one of them. Have you tried turning on logging for mod_rewrite to see if there is an obvious reason for it's failure? Scott On Tue, May 31, 2011 at 2:58 PM, Vipin TS <vip...@gm...> wrote: > > >> Hi Alessandro, >> >> One thing you could use is mod_rewrite, an apache extension. Do you know >> if you have access to it? If so, you could show us an example old URL and >> the corresponding new URL and I could (probably) write a rule that would do >> the trick. >> >> Scott >> > > > Hi Scott, > > For Gbrowse 1.X, I used the RewriteRule on apache configuration to look for > the default instance of my Gbrowse: > > <> > ServerName gbrowse.fml.tuebingen.mpg.de > ... > RewriteRule ^$ /cgi-bin/gbrowse > ... > <> > > by this just invoking the base URL (gbrowse.fml.tuebingen.mpg.de), it took > the user to my default GBrowse instance (Not the Genome Browse welcome page) > > But the same strategy I followed to Gbrowse 2.X and it fails to invoke the > default browser instance. > Till now I did not find a solution to fix the issue. For the Gbrowse 2.X > > <> > ServerName gbrowse2.fml.tuebingen.mpg.de > ... > RewriteRule ^$ /gb/gbrowse > ... > <> > > By using the base URL (gbrowse2.fml.tuebingen.mpg.de) this page will take me > to http://en.wikipedia.org/wiki/Yeast > I believe that the script is getting only the last keyword yeast (that is my > default browser instance) and redirecting a common search page. > At some point the redirecting script fails to add the browser address > (gbrowse2.fml.tuebingen.mpg.de/gb/gbrowse) to the default Gbrowse instance > name. > My main GBrowse.conf file head look like the following: > > [GENERAL] > config_base = /home/gb/gb2/ # overridden by environment > variable GBROWSE_CONF > htdocs_base = /home/gb/gb2/www/ > url_base = / > db_base = > tmp_base = /home/gb/nobackup/gb2_tmp_file/ > > I think when invoking the gbrowse2.fml.tuebingen.mpg.de, the url_base option > here replaces the combined gbrowse2.fml.tuebingen.mpg.de/gb/gbrowse/ with > '/' and that result into the normal google search with default browser > instance keyword name. I am not sure whether I can add any other option to > make the base url to work at the same way what I did for Gbrowse 1.x > > I hope you can give me better solution to resolve this problem. > > many thanks in advance, Vipin > -- ------------------------------------------------------------------------ Scott Cain, Ph. D. scott at scottcain dot net GMOD Coordinator (http://gmod.org/) 216-392-3087 Ontario Institute for Cancer Research |