Your IP : 10.1.73.149


Current Path : /opt/cpguard/cpg-nginx/conf/captcha/
Upload File :
Current File : //opt/cpguard/cpg-nginx/conf/captcha/artificiallearning.org.conf

server {

    server_name artificiallearning.org mail.artificiallearning.org www.artificiallearning.org cpanel.artificiallearning.org cpcalendars.artificiallearning.org webdisk.artificiallearning.org cpcontacts.artificiallearning.org webmail.artificiallearning.org;

    listen 9096;
    listen [::]:9096;

    root /opt/cpguard/app/api/public/captcha;

    access_log off;
    etag off;
    keepalive_timeout 0;

    # Absolute no-cache on captcha
    add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" always;
    add_header Pragma "no-cache" always;
    add_header Expires "0" always;

    location / {
        return 301 https://$host$request_uri;
    }
}

server {

    server_name artificiallearning.org mail.artificiallearning.org www.artificiallearning.org cpanel.artificiallearning.org cpcalendars.artificiallearning.org webdisk.artificiallearning.org cpcontacts.artificiallearning.org webmail.artificiallearning.org;

    listen 9097 ssl;
    listen [::]:9097 ssl;

    ssl_certificate /opt/cpguard/cpg-nginx/ssl/domains/artificiallearning.org.pem;
    ssl_certificate_key /opt/cpguard/cpg-nginx/ssl/domains/artificiallearning.org.pem;

    root /opt/cpguard/app/api/public/captcha;

    access_log off;
    etag off;
    keepalive_timeout 0;

    # Absolute no-cache on captcha
    add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" always;
    add_header Pragma "no-cache" always;
    add_header Expires "0" always;

    location = /altcha.php {
        include /opt/cpguard/cpg-nginx/conf/fastcgi_params;
        fastcgi_pass unix:/opt/cpguard/cpg-php-fpm/var/run/cpgphp-cgi.sock;
        fastcgi_index altcha.php;
        fastcgi_param SCRIPT_FILENAME $document_root/altcha.php;
    }

    # This saves bandwidth. Nginx simply hangs up on them.
    location ~* \.(jpg|jpeg|gif|png|bmp|webp|ico|svg|tiff|css|js|woff|woff2|ttf|eot|map|json|pdf|doc|docx|xls|xlsx|ppt|pptx|txt|rtf|zip|rar|7z|tar|gz|bz2|iso|mp3|mp4|avi|mov|mpeg|flv|wav|ogg)$ {
        return 444;
    }

    location / {
        rewrite ^ /https.html break;
    }

}