Guest User

SOGo Nginx

a guest
Dec 1st, 2025
88
0
Never
13
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 4.40 KB | Source Code | 0 0
  1. server {
  2.     listen                      443 ssl;
  3.     http2                       on;
  4.     server_name                 mail.domain.tld;
  5.     root                        /usr/lib/GNUstep/SOGo/WebServerResources/;
  6.     server_tokens               off;
  7.     index                       index.php index.html index.htm index.nginx-debian.html;
  8.     autoindex                   off;
  9.  
  10.     ssl_certificate             /etc/letsencrypt/live/mail.domain.tld/fullchain.pem;
  11.     ssl_certificate_key         /etc/letsencrypt/live/mail.domain.tld/privkey.pem;
  12.     ssl_session_cache           shared:SSL:10m;
  13.     ssl_session_timeout         1440m;
  14.     ssl_session_tickets         off;
  15.     ssl_protocols               TLSv1.2 TLSv1.3;
  16.     ssl_ciphers                 "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
  17.     ssl_prefer_server_ciphers   on;
  18.     ssl_dhparam                 /etc/letsencrypt/ssl-dhparams.pem;
  19.     add_header                  Strict-Transport-Security "max-age=31536000" always;
  20.  
  21.     error_page                  404 /404.php;
  22.  
  23.     # redirect server error pages to the static page /50x.php
  24.     error_page                  500 502 503 504 /50x.php;
  25.     location = /50x.php {
  26.         root            /galaxy/rudder/user/www/50x;
  27.     }
  28.  
  29.     error_log                   /var/log/nginx/domain.tld/webmail/error.log;
  30.     access_log                  /var/log/nginx/domain.tld/webmail/access.log;
  31.  
  32.     client_max_body_size        100M;
  33.     client_body_buffer_size     512k;
  34.     client_header_timeout       360;
  35.     client_body_timeout         360;
  36.     send_timeout                360;
  37.  
  38.     location = / {
  39.         rewrite ^ https://$server_name/SOGo;
  40.         allow all;
  41.     }
  42.  
  43.     # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  44.     location ~ \.php$ {
  45.         try_files       $uri =404;
  46.         fastcgi_pass    unix:/run/php/php8.5-fpm.sock;
  47.         fastcgi_index   index.php;
  48.         fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
  49.         include         fastcgi_params;
  50.     }
  51.  
  52.     location ^~/SOGo {
  53.         proxy_pass http://127.0.0.1:20000;
  54.         proxy_redirect http://127.0.0.1:20000 default;
  55.         # forward user's IP address
  56.         proxy_set_header X-Real-IP $remote_addr;
  57.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  58.         proxy_set_header Host $host;
  59.         proxy_set_header x-webobjects-server-protocol HTTP/1.0;
  60.         proxy_set_header x-webobjects-remote-host 127.0.0.1;
  61.         proxy_set_header x-webobjects-server-name $server_name;
  62.         proxy_set_header x-webobjects-server-url $scheme://$host;
  63.         proxy_connect_timeout 360;
  64.         proxy_send_timeout 360;
  65.         proxy_read_timeout 360;
  66.         proxy_buffer_size 128k;
  67.         proxy_buffers 64 512k;
  68.         proxy_busy_buffers_size 512k;
  69.         proxy_temp_file_write_size 512k;
  70.         client_max_body_size 50m;
  71.         client_body_buffer_size 1024k;
  72.         break;
  73.     }
  74.  
  75.     # For IOS 7
  76.     location = /principals/ {
  77.         rewrite ^ https://$server_name/SOGo/dav;
  78.         allow all;
  79.     }
  80.  
  81.     location /SOGo.woa/WebServerResources/ {
  82.         alias /usr/lib/GNUstep/SOGo/WebServerResources/;
  83.         allow all;
  84.     }
  85.  
  86.     location /SOGo/WebServerResources/ {
  87.         alias /usr/lib/GNUstep/SOGo/WebServerResources/;
  88.         allow all;
  89.     }
  90.  
  91.     location ^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
  92.         alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
  93.     }
  94.  
  95.     location ^/SOGo/so/ControlPanel/Products/[^/]*UI/Resources/.*\.(jpg|png|gif|css|js)$ {
  96.         alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
  97.     }
  98.  
  99.     location /plugins {
  100.         autoindex       on;
  101.     }
  102.  
  103.     location ^~ /Microsoft-Server-ActiveSync {
  104.         proxy_pass https://127.0.0.1:20000/Microsoft-Server-ActiveSync;
  105.         proxy_redirect https://127.0.0.1:20000/Microsoft-Server-ActiveSync /;
  106.     }
  107.  
  108.     location ^~ /SOGo/Microsoft-Server-ActiveSync {
  109.         proxy_pass https://127.0.0.1:20000/Microsoft-Server-ActiveSync;
  110.         proxy_redirect https://127.0.0.1:20000/Microsoft-Server-ActiveSync /;
  111.     }
  112.    
  113.     location ^~ /\. {
  114.         deny            all;
  115.         log_not_found   off;
  116.         access_log      off;
  117.         return          403;
  118.     }
  119. }
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Adwynky
    30 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • User was banned
  • Gydegni
    5 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=yhpcbrfdbn
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment