[Kamailio-Devel] [SIREMIS] minor fixes in Apache conf

Iñaki Baz Castillo ibc at aliax.net
Mon Mar 16 22:04:52 CET 2009


Hi, I'm trying Siremis-0.9.2 and have found som issues in the apache 
configuration:

    Alias /siremis/ "/var/www/siremis-0.9.0/siremis-web/"
    <Directory "/var/www/siremis-0.9.0/siremis-web/">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
        RedirectMatch ^/siremis/$ /siremis/bin/
        <Files ~ "\.inc$">
            Order allow,deny
            Deny from all
        </Files>
    </Directory>


1)
Instead of:
  Alias /siremis/ "/var/www/siremis-0.9.0/siremis-web/"
is better to use:
  Alias /siremis "/var/www/siremis-0.9.0/siremis-web/"

If not, the user must write "http://domain/siremis/" (the final "/" is 
mandatory). With the second approach it's not required to add the final 
slash.


2)
"RedirectMatch ^/siremis/$ /siremis/bin/" doesn't work into a "<Directory>" 
directive, it must be out from there.


So I suggest:

    Alias /siremis "/var/www/siremis-0.9.0/siremis-web/"
    RedirectMatch ^/siremis/$ /siremis/bin/
    <Directory "/var/www/siremis-0.9.0/siremis-web/">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
        <Files ~ "\.inc$">
            Order allow,deny
            Deny from all
        </Files>
    </Directory>





-- 
Iñaki Baz Castillo



More information about the Devel mailing list