Page 1 of 1

having another website alongside omero on windows

PostPosted: Mon Jan 16, 2012 2:50 pm
by achessel
hi all,

Sorry if that question is bit trivial, but my knowledge of web servers, and IIS in particular, is a bit lacking... I recently finally got OMEROweb to work (and played a bit with the whole django framework, really quite powerful), but it seems now all url coming to the server are interpreted by django's parser, thus hiding wharever else was there.

The solution I found somewhere would be to install django on another virtual directory: when installing omero iis, it says "Configured Virtual Directory: /", thus getting any address on the server. I tried to modify omero_web_iis.py, where that seem to be defined, to /omero; it did say "Configured Virtual Directory: /omero" when started but is not working as expected afterward. What should I do and is there a proper way to do it? Is there something obvious I missed?

additional question: while tinkering with stuff, I manually deleted the handler mapping that was redirecting all request to the omero django server, trying to reset everything to before I installed omeroweb. But it does not seems to install itself again if I reinstall OMEROweb... (so now omero web is not working anymore. But the rest is...)

many thanks

(btw it's omero 4.3.3 on windows server 2008, iis 7.5)

Re: having another website alongside omero on windows

PostPosted: Mon Jan 16, 2012 3:19 pm
by cxallan
Unfortunately OMERO 4.3.3 does not support relocating to a subpath or virtual directory such as /omero. It is however something that we currently have working in the development tree so this functionality will be present in OMERO 4.4.0. At the moment your only solution to the "hiding" effect is to use virtual hosting.

Re: having another website alongside omero on windows

PostPosted: Tue Jan 17, 2012 1:33 pm
by achessel
Ah, ok, thanks for the answer. And, hum, do you have a tentative ETA for 4.4.0?

Any idea for my second question?

I wrote:additional question: while tinkering with stuff, I manually deleted the handler mapping that was redirecting all request to the omero django server, trying to reset everything to before I installed omeroweb. But it does not seems to install itself again if I reinstall OMEROweb...

Re: having another website alongside omero on windows

PostPosted: Tue Jan 17, 2012 2:17 pm
by cxallan
The tentative date for OMERO 4.4.0 is sometime late spring, early summer 2012 but right now that's very rough.

When you say "But it does not seems to install itself again if I reinstall OMEROweb", what do you mean? Running bin/omero web iis?

Re: having another website alongside omero on windows

PostPosted: Thu Jan 19, 2012 11:10 am
by achessel
I did 'bin/omero web iis --remove', but a mapping remained (in the 'handler mapper' section of iis) that (AFAIK?) redirected all request to the web server to omero, thus still hiding everything. I deleted it manually; now everything is back to pre-omeroweb (I think), but if I try to reinstall omeroweb, by rerunning 'bin/omero web iis', that mapping is not coming back, so omero web is not working... (again, I am not a web server expert, so it could be me doing it wrong...)

Re: having another website alongside omero on windows

PostPosted: Thu Jan 19, 2012 11:21 am
by jmoore
Have you tried calling "iisreset" after any calls to "bin\omero web iis" ?

~Josh.

Re: having another website alongside omero on windows

PostPosted: Thu Jan 19, 2012 12:02 pm
by achessel
yes, iisreset everytime you do smthing seem to do the trick. I had to reset iis or the website each time I touched to django stuff as well, so it make sense I guess...

many thanks for the help...

Re: having another website alongside omero on windows

PostPosted: Thu Jan 19, 2012 12:16 pm
by jmoore
Glad to hear it. ~J.