OME web set up on a virtual host
Posted:
Mon Nov 14, 2011 3:20 am
by rguha
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,
Re: OME web set up on a virtual host
Posted:
Thu Nov 17, 2011 8:28 am
by jmoore
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