Skip to content

Instantly share code, notes, and snippets.

@garncarz
Last active August 29, 2015 14:24
Show Gist options
  • Save garncarz/d900dac04518ad7547d3 to your computer and use it in GitHub Desktop.
Save garncarz/d900dac04518ad7547d3 to your computer and use it in GitHub Desktop.
Roundcube on Nginx
index index.html index.htm;
location ~ /\.|^\. {
deny all;
}
access_log /var/log/nginx/$host-access_log;
error_log /var/log/nginx/error_log;
server {
listen 443 ssl;
server_name mail.domain.com;
location / {
root /usr/share/webapps/roundcubemail;
include common;
include php;
#include niceurls;
}
}
try_files $uri /index.php?$args;
index index.php index.html index.htm;
location ~ \.php$ {
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment