Re: Running roundcube over httpd

2015-09-11 Thread Steve Shockley

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
}



Re: Running roundcube over httpd

2015-09-10 Thread Stuart Henderson
On 2015-09-09, Chris Cappuccio  wrote:
> Alexander Hall [alexan...@beard.se] wrote:
>> Hi!
>> 
>> Does anyone have an example for a functional configuration for
>> roundcube[mail] over the new httpd?
>> 
>> pkg-readmes/roundcubemail* seems to be for running apache.
>> 
>
> It "just works" when you use a standard php_fpm config.
>
>

Make sure that the HTTPS fastcgi parameter is set correctly if you have
IE users, or file downloads might not work.

As the readme says, "review the .htaccess files as you may need to use
them as a template to adjust various PHP settings in /etc/php-5.6.ini".



Re: Running roundcube over httpd

2015-09-09 Thread Chris Cappuccio
Alexander Hall [alexan...@beard.se] wrote:
> Hi!
> 
> Does anyone have an example for a functional configuration for
> roundcube[mail] over the new httpd?
> 
> pkg-readmes/roundcubemail* seems to be for running apache.
> 

It "just works" when you use a standard php_fpm config.



Re: Running roundcube over httpd

2015-09-09 Thread Edgar Pettijohn

On 09/09/2015 06:03 PM, Alexander Hall wrote:

Hi!

Does anyone have an example for a functional configuration for 
roundcube[mail] over the new httpd?


pkg-readmes/roundcubemail* seems to be for running apache.

/Alexander


server "mail.pettijohn-web.com" {
listen on $ext_addr tls port 443

location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}

directory index index.php

tls certificate "/etc/ssl/webserver.pem"
tls key "/etc/ssl/private/webserver.pem"

root "/htdocs/roundcubemail"
}