[ensembl-dev] Reverse proxy problem

William Spooner whs at eaglegenomics.com
Tue Dec 28 21:37:13 GMT 2010


On 28 Dec 2010, at 11:13, Oscar Eriksson wrote:

> Hi,
> 
> I'm trying to get a local instance of ensembl to work behind a reverse
> proxy. The site works great if I access it through http://mysite:1234/
> but not when I access it from the proxy, http://myproxy/ensembl.
> 
> Seems like all links within the site starts of with a "/" which I guess
> makes it hard to proxy. Is there any way for me to add a prefix to all
> addresses which would make it easier to proxy?

Hi Oscar,

Not that I know of, but here is our (Gramene's) complete list of proxied URLs that we've compiled over the years;

    # Other page proxies to the ensembl server
    push @ProxyPass, [ "/js",                "$ge_locn/js" ];
    push @ProxyPass, [ "/gfx",               "$ge_locn/gfx" ];
    push @ProxyPass, [ "/img",               "$ge_locn/img" ];
    push @ProxyPass, [ "/css",               "$ge_locn/css" ];
    push @ProxyPass, [ "/EnsEMBL.css",       "$ge_locn/EnsEMBL.css" ];
    push @ProxyPass, [ "/EnsEMBL-mac.css",   "$ge_locn/EnsEMBL-mac.css" ];
    push @ProxyPass, [ "/gramene/images",    "$ge_locn/gramene/images" ];
    push @ProxyPass, [ "/genome",            "$ge_locn/" ];
    push @ProxyPass, [ "/perl/SeqTable",     "$ge_locn/perl/SeqTable" ];
    push @ProxyPass, [ "/perl/SeqTable.cgi", "$ge_locn/perl/SeqTable" ];
    push @ProxyPass, [ "/perl/anchorview",   "$ge_locn/perl/anchorview" ];
    push @ProxyPass, [ "/perl/config",       "$ge_locn/perl/config" ];
    push @ProxyPass, [ "/perl/contigview",   "$ge_locn/perl/contigview" ];
    push @ProxyPass, [ "/perl/dumpcfgview",  "$ge_locn/perl/dumpcfgview" ];
    push @ProxyPass, [ "/perl/geneview",     "$ge_locn/perl/geneview" ];
    push @ProxyPass, [ "/perl/helpview",     "$ge_locn/perl/helpview" ];
    push @ProxyPass, [ "/perl/japonica",     "$ge_locn/perl/japonica" ];
    push @ProxyPass, [ "/perl/mapview",      "$ge_locn/perl/mapview" ];
    push @ProxyPass, [ "/perl/markerview",   "$ge_locn/perl/markerview" ];
    push @ProxyPass, [ "/perl/seqentryview", "$ge_locn/perl/seqentryview" ];
    push @ProxyPass, [ "/perl/ssahaview",    "$ge_locn/perl/ssahaview" ];
    push @ProxyPass, [ "/perl/unisearch",    "$ge_locn/perl/unisearch" ];
    push @ProxyPass, [ "/contigview_files",  "$ge_locn/contigview_files" ];
    push @ProxyPass, [ "/img-tmp",           "$ge_locn/img-tmp" ];
    push @ProxyPass, [ "/img-cache",         "$ge_locn/img-cache" ];
    push @ProxyPass, [ "/ensembl/img-tmp",   "$ge_locn/ensembl/img-tmp" ];
    push @ProxyPass, [ "/ens-tmp",           "$ge_locn/ens-tmp" ];
    push @ProxyPass, [ "/tmp/gene_tree",     "$ge_locn/tmp/gene_tree" ];
    push @ProxyPass, [ "/biomart",           "$ge_locn/biomart" ];
    push @ProxyPass, [ "/das",               "$ge_locn/das" ];
    push @ProxyPass, [ "/minified",          "$ge_locn/minified" ];
    push @ProxyPass, [ "/i/",                "$ge_locn/i/" ];
    push @ProxyPass, [ "/default/",          "$ge_locn/default/" ];
    push @ProxyPass, [ "/martview-hacks.css","$ge_locn/martview-hacks.css" ];
    push @ProxyPass, [ "/common/",           "$ge_locn/common/" ];
    push @ProxyPass, [ "/info(.*)"          ,"$ge_locn/info$1"];
    push @RewriteRule, [ '^/Multi/mart(.+)$', '/biomart/mart$1', '[R,NC]' ];


Best,

Will

> 
> Best Regards,
> Oscar Eriksson
> 
> 
> _______________________________________________
> Dev mailing list
> Dev at ensembl.org
> http://lists.ensembl.org/mailman/listinfo/dev

--
William Spooner
whs at eaglegenomics.com
http://www.eaglegenomics.com







More information about the Dev mailing list