Page 1 of 1

Invalid application host - configuring apache

PostPosted: Thu Dec 16, 2010 12:19 pm
by maffy
I'm having problems setting up the web side to my server. I have the server set up and can log in fine and use the development web service, but when I follow the instruction to set it up for apache I get an error and I'm not sure where to go from here.
My server is Ubuntu 10.04 server. Everything else seems to be working, but when following the guide and I get the following:

Code: Select all
$ bin/omero web config apache
Invalid application host: http://<machine_name>.<domain>/

(doesn't actually say <machine_name>.<domain>, I have substituted the DNS name of the machine which resolves fine). I had set omero.web.application_host as the instructions show.

Any pointers where to look to resolve it? Nothing I can see in the logs and I don't find anything online about this error.

Re: Invalid application host - configuring apache

PostPosted: Fri Dec 17, 2010 9:30 am
by cxallan
It just requires the port to be specified explicitly. In the future we'll make this more flexible and in the mean time I've made this difference very pronounced on the "Web on Production" install page. An example:

Code: Select all
$ bin/omero config set omero.web.application_host 'http://blah.blah/'
$ bin/omero web config apache
Invalid application host: http://blah.blah/
$ bin/omero config set omero.web.application_host 'http://blah.blah:80/'
$ bin/omero web config apache
###
### Stanza for OMERO.web created 2010-12-17 09:24:13.225374
###
FastCGIExternalServer ".../OMERO-TRUNK/var/omero.fcgi" -host 0.0.0.0:4080

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

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

Alias /appmedia .../OMERO-TRUNK/lib/python/omeroweb/media
Alias / ".../OMERO-TRUNK/var/omero.fcgi/"

Re: Invalid application host - configuring apache

PostPosted: Fri Dec 17, 2010 1:14 pm
by maffy
As simple as that, can't believe I didn't try that to be honest.

Many thanks, all working.