Commit b37739da authored by Daniel Stan's avatar Daniel Stan

vhost rc

parent 02e3cbb5
server {
listen 443;
listen [::]:443;
server_name rc.tudo.re;
ssl on;
ssl_certificate /etc/letsencrypt/live/www.tudo.re/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.tudo.re/privkey.pem;
# set max upload size
client_max_body_size 10G;
fastcgi_buffers 64 4K;
root /usr/share/roundcube/;
# Disable gzip to avoid the removal of the ETag header
gzip off;
index index.php;
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ ^/(?:\.htaccess|data|config|db_structure\.xml|README){
deny all;
}
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php(?:$|/) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment