On 9/9/2015 7:03 PM, Alexander Hall wrote:
Hi!
Does anyone have an example for a functional configuration for
roundcube[mail] over the new httpd?
I use the following to have roundcubemail in a subdirectory with
unrelated content above it. Note that I do not consider myself to be an
httpd configuration expert, so this may not be optimal.
directory index index.php
location "/roundcube/.*" { block }
location "/roundcube/SQL/*" { block }
location "/roundcube/bin/*" { block }
location "/roundcube/config/*" { block }
location "/roundcube/logs/*" { block }
location "/roundcube/temp/*" { block }
location "/roundcube/tests/*" { block }
location "/roundcube/program/include/*" { block }
location "/roundcube/program/lib/*" { block }
location "/roundcube/program/localization/*" { block }
location "/roundcube/program/steps/*" { block }
location "/roundcube/README.md" { block }
location "/roundcube/composer.json-dist" { block }
location "/roundcube/composer-json" { block }
location "/roundcube/package.xml" { block }
location "/roundcube/Dockerfile" { block }
location "/roundcube/installer/*" { block }
location "/roundcube/*.php*" {
# Roundcube dir is outside of htdocs
# Strip 1 means remove /roundcube/ from root
root { "/roundcubemail", strip 1 }
fastcgi socket "/run/php-fpm.sock"
directory index index.php
}
location "/roundcube/*" {
root { "/roundcubemail", strip 1 }
directory index index.php
}