Last active
August 29, 2015 14:24
-
-
Save garncarz/d900dac04518ad7547d3 to your computer and use it in GitHub Desktop.
Roundcube on Nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index index.html index.htm; | |
location ~ /\.|^\. { | |
deny all; | |
} | |
access_log /var/log/nginx/$host-access_log; | |
error_log /var/log/nginx/error_log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 ssl; | |
server_name mail.domain.com; | |
location / { | |
root /usr/share/webapps/roundcubemail; | |
include common; | |
include php; | |
#include niceurls; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try_files $uri /index.php?$args; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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