Page 1 of 1

Minor: 'web config' output not parseable by Apache24

PostPosted: Thu Sep 08, 2016 9:07 pm
by jimlong
When I:

Code: Select all
$ bin/omero web config apache > httpd-omero.conf
# mv -vi ~omero/OMERO.server/httpd-omero.conf


and then run 'apachectl configtest' I get:

Code: Select all
# apachectl configtest
AH00526: Syntax error on line 70 of /etc/httpd/conf.d/httpd-omero.conf:
Either all Options must start with + or -, or no Option may.


Code: Select all
# cat -n /etc/httpd/conf.d/httpd-omero.conf | grep -2w 70
    68    Alias /static /home/omero/OMERO.server-5.2.5-ice36-b28/lib/python/omeroweb/static
    69    <Directory "/home/omero/OMERO.server-5.2.5-ice36-b28/lib/python/omeroweb/static">
    70        Options -Indexes FollowSymLinks
    71        Order allow,deny
    72        Allow from all


I will patch the .conf file to say "Options -Indexes +FollowSymLinks" but I just thought I'd mention this minor hiccup.

Just as information, I am using:

Code: Select all
# yum list installed | grep http
httpd.x86_64                            2.4.6-40.el7.centos.4          @updates
httpd-devel.x86_64                      2.4.6-40.el7.centos.4          @updates
httpd-tools.x86_64                      2.4.6-40.el7.centos.4          @updates


Thanks as always,

Jim

Re: Minor: 'web config' output not parseable by Apache24

PostPosted: Thu Sep 08, 2016 9:23 pm
by atarkowska
Hi Jim

for Apache 2.4 use
Code: Select all
bin/omero web config apache24  > httpd-omero.conf

sorry looks like it is not clearly stated in the doc
Code: Select all
bin/omero web config -h
will show you all the option

NOTE: Likely Apache will be deprecated and removed soon, why not use nginx?

Ola