Discussion:
[Gmod-gbrowse] Configure gbrowse_apache2.conf
Asma Riyaz
2014-07-07 18:04:19 UTC
Permalink
Hi,

I am trying to set up GBrowse's apache configuration:

Here is the gbrowse_apache2.conf file:

Alias "/gbrowse2/i/" "/var/cache/gbrowse/images/"
Alias "/gbrowse2" "/usr/share/gbrowse/htdocs"
ScriptAlias "/gb2/gbrowse/" "/usr/lib/cgi-bin/gb2/gbrowse"

<Directory "/usr/share/gbrowse/htdocs">
AllowOverride Options
Options -Indexes -MultiViews +FollowSymLinks
Require all granted
</Directory>

<Directory "/usr/share/gbrowse/htdocs/tutorial">
Options +Indexes
</Directory>

<Directory "/var/cache/gbrowse/images/">
Require all granted
</Directory>

<Directory "/var/lib/gbrowse/databases">
Require all granted
</Directory>

<Directory "/usr/lib/cgi-bin/gb2/gbrowse">

Options ExecCGI
SetEnv GBROWSE_CONF "/etc/gbrowse2"
</Directory>

<IfModule mod_fcgid.c>
Alias /fgb2 "/usr/lib/cgi-bin/gb2/gbrowse"
<Location /fgb2>
SetHandler fcgid-script
</Location>
FcgidInitialEnv GBROWSE_CONF /etc/gbrowse2
# these directives prevent idle/busy timeouts and may need to be
# adjusted up or down
FcgidMinProcessesPerClass 6
FcgidIOTimeout 600
FcgidBusyTimeout 600

</IfModule>

<IfModule mod_fastcgi.c>
Alias /fgb2 "/usr/lib/cgi-bin/gb2/gbrowse"
<Location /fgb2>
SetHandler fastcgi-script
</Location>
# Note: you may need to increase -idle-timeout if file uploads are timing
out and returning server
# errors.
FastCgiConfig -idle-timeout 600 -maxClassProcesses 20 -initial-env
GBROWSE_CONF=/etc/gbrowse2
</IfModule>
<IfModule mod_perl.c>
Alias /mgb2 "/usr/lib/cgi-bin/gb2/gbrowse"

<IfModule mod_perl.c>
<Location /mgb2>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
</Location>
</IfModule>

My iframe is set in this way:
<iframe src="/gb2/gbrowse/{% if organismId %}organismId{{ organismId }}{%
endif %}{% if uniquename %}?uniquename={{ uniquename }}{% else %}{% if name
%}?name={{ name }}{% endif %}{% endif %}" style="border: none; margin: 0
auto;" width="100%" height="100%"></iframe>

All this ends up displaying the gbrowse script under gb2 itself rather that
the browser itself, any inputs to change this?

Thanks
Asma

Loading...