Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- server {
- server_name clxxxxxxx www.clxxxxxxx;
- listen XX.XX.XX.XX:80;
- return 301 https://$server_name$request_uri;
- }
- server {
- server_name clxxxxxxx www.clxxxxxxx;
- listen XX.XX.XX.XX:443 http2;
- ssl on;
- ssl_certificate "/var/www/httpd-cert/xxxxxxx/clxxxxxxx_le1.crtca";
- ssl_certificate_key "/var/www/httpd-cert/xxxxxxx/clxxxxxxx_le1.key";
- charset UTF-8;
- access_log off;
- ssi on;
- error_log /var/www/httpd-logs/clxxxxxxx.error.log notice;
- set $root_path /var/www/xxxxxxx/data/www/clxxxxxxx;
- root $root_path;
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
- rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json;
- location = /.well-known/carddav {
- return 301 $scheme://$host/remote.php/dav;
- }
- location = /.well-known/caldav {
- return 301 $scheme://$host/remote.php/dav;
- }
- client_max_body_size 128M;
- fastcgi_buffers 64 4K;
- gzip on;
- gzip_vary on;
- gzip_comp_level 4;
- gzip_min_length 256;
- gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
- gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
- error_page 403 https://clxxxxxxx/core/templates/403.php;
- error_page 404 https://clxxxxxxx/core/templates/404.php;
- location / {
- rewrite ^ /index.php$uri;
- }
- location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
- deny all;
- }
- location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
- deny all;
- }
- location ~ ^/(data|config|\.ht|db_structure\.xml|README) {
- deny all;
- }
- location ~* ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+)\.php(?:$|/) {
- fastcgi_split_path_info ^(.+?\.php)(/.*)$;
- set $path_info $fastcgi_path_info;
- try_files $fastcgi_script_name =404;
- fastcgi_param PATH_INFO $path_info;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param HTTPS on;
- fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
- fastcgi_param front_controller_active true;
- fastcgi_pass unix:/var/www/php-fpm/xxxxxxx.sock;
- fastcgi_intercept_errors on;
- fastcgi_request_buffering off;
- fastcgi_pass_header Authorization;
- fastcgi_param modHeadersAvailable true;
- include fastcgi_params;
- fastcgi_buffering off;
- fastcgi_param PATH "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin";
- }
- location ~ ^/(?:updater|ocs-provider)(?:$|/) {
- try_files $uri/ =404;
- index index.php;
- }
- location ~ \.(?:css|js|woff|svg|gif)$ {
- try_files $uri /index.php$uri$is_args$args;
- add_header Cache-Control "public, max-age=15778463";
- add_header X-Content-Type-Options nosniff;
- add_header X-XSS-Protection "1; mode=block";
- add_header X-Robots-Tag none;
- add_header X-Download-Options noopen;
- add_header X-Permitted-Cross-Domain-Policies none;
- access_log off;
- }
- location ~* \.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$ {
- try_files $uri /index.php$uri$is_args$args;
- access_log off;
- }
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

