Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name mail.raveolution.me;
- root /var/www/html/mail;
- index index.php index.html index.htm;
- error_log /var/log/nginx/roundcube.error;
- access_log /var/log/nginx/roundcube.access;
- location / {
- try_files $uri $uri/ /index.php;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass unix:/run/php/php8.1-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- location ~ /.well-known/acme-challenge {
- allow all;
- }
- location ~ ^/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
- deny all;
- }
- location ~ ^/(bin|SQL)/ {
- deny all;
- }
- # A long browser cache lifetime can speed up repeat visits to your page
- location ~* \.(jpg|jpeg|gif|png|webp|svg|woff|woff2|ttf|css|js|ico|xml)$ {
- access_log off;
- log_not_found off;
- expires 360d;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement