Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 178.128.206.221:443 ssl http2;
- server_name webmail.origammi.tk mail.origammi.tk;
- ssl_certificate /home/admin/conf/mail/origammi.tk/ssl/origammi.tk.pem;
- ssl_certificate_key /home/admin/conf/mail/origammi.tk/ssl/origammi.tk.key;
- root /var/lib/roundcube;
- index index.php;
- location ~ /(config|temp|logs) {
- deny all;
- return 404;
- }
- location ~ /\.(?!well-known\/) {
- deny all;
- return 404;
- }
- location / {
- try_files $uri $uri/ /index.php?$args;
- location ~* ^.+\.(ogg|ogv|svg|svgz|swf|eot|otf|woff|mov|mp3|mp4|webm|flv|ttf|rss|atom|jpg|jpeg|gif|png|ico|bmp|mid|midi|wav|rtf|css|js|jar)$ {
- alias /var/lib/roundcube/;
- expires 1h;
- fastcgi_hide_header "Set-Cookie";
- }
- }
- location ~ ^/(.*\.php)$ {
- alias /var/lib/roundcube/$1;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- }
- error_page 403 /error/404.html;
- error_page 404 /error/404.html;
- error_page 500 502 503 504 /error/50x.html;
- location /error/ {
- alias /home/admin/web/origammi.tk/document_errors/;
- }
- include /home/admin/conf/mail/origammi.tk/nginx.conf_*;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement