We're Hiring!

OME web set up on a virtual host

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

OME web set up on a virtual host

Postby rguha » Mon Nov 14, 2011 3:20 am

Hi, as part of the installation and configuration of OME I have reached the stage where I am supposed to place the <Directory> blocks into httpd.conf. However, our sysadmin requires that I use an Apache virtual host rather than place this directly into httpd.conf. Has anybody set up their web interface in this fashion? Any pointers would be appreciated.

Thanks,
rguha
 
Posts: 16
Joined: Thu May 26, 2011 1:04 pm

Re: OME web set up on a virtual host

Postby jmoore » Thu Nov 17, 2011 8:28 am

Hi,

I'm certainly not an expert on Apache, but you should be able to add a file to /etc/apache2/vhosts.d and wrap the section returned from:
Code: Select all
bin/omero web config apache


with a vhost block:

Code: Select all
<VirtualHost *:80>

    FastCGIExternalServer "/EXAMPLE/var/omero.fcgi" -host 0.0.0.0:4080

    <Directory "/EXAMPLE/var">
        Options -Indexes FollowSymLinks
        Order allow,deny
        Allow from all
    </Directory>

    <Directory "/EXAMPLE/lib/python/omeroweb/media">
        Options -Indexes FollowSymLinks
        Order allow,deny
        Allow from all
    </Directory>

    Alias /appmedia /EXAMPLE/lib/python/omeroweb/media
    Alias / "/EXAMPLE/var/omero.fcgi/"

</VirtualHost>



And similiarly for SSL:
Code: Select all
<VirtualHost ...:443>
</VirtualHost>


Cheers,
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest