Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - arthurpendragonxx

Pages: [1]
1
CentOS 6 Problems / Re: Nginx force download and custom error pages
« on: January 12, 2021, 06:05:18 PM »
Hello,

I have a couple of VPS with CWP installed and all of them are configured to use Nginx & Apache as WebServer. I recently had to rebuild the WebServer of one VPS as CWP was forcing me to do but since then Nginx force download for specific extensions aren't working as well as custom error pages. I have checked the Nginx version of the server where these two are not working and its' nginx/1.16.1. But they are working fine on CWP installation with nginx/1.14.0. I used the following configuration on nginx vhosts -


Quote
location ~* (.*\.mp4) {
types { application/octet-stream .mp4; }
default_type application/octet-stream;
}

MyWMTotalRewards MyBPCreditCard


error_page 404 403 /404.shtml;
        location = /404.shtml {
        root /path/to/directory;
                internal;
        }


Above configuration is working fine on nginx/1.14.0 but doesn't seem to be working on nginx/1.16.1.

Quote
[root@server1 ~]# nginx -v
nginx version: nginx/1.16.1
[root@server1 ~]# grep version /usr/local/cwpsrv/htdocs/resources/admin/include/version.php| awk '{print $NF}'| tr -d '"|;'
0.9.8.697
[root@server1 ~]#

Can anyone please assist me to configure Nginx force download and custom error pages on nginx/1.16.1 ?

What happened ?Waiting for your answer.As i really want to know about it..I hope u will reply soon

Pages: [1]