Luo SijiaL
New Pleskian
i got some problem with using x-accel-redirect utility in Nginx.
i have almost checked all the article online but still configure it out.
the main problem i suppose is located in the nginx.conf file.
the default content in the nginx.conf is quite simple,
but i tried up the configuration posted online with no success.
so i suppose the right way on my server might be related to the plesk,
cauz it is intelligently installed by plesk.
do you have any idea on this point?
i really need some help, thx in advance.
by the way, the default nginx.conf file is like:
1
2 #user nginx;
3 worker_processes 1;
4
5 #error_log /var/log/nginx/error.log;
6 #error_log /var/log/nginx/error.log notice;
7 #error_log /var/log/nginx/error.log info;
8
9 #pid /var/run/nginx.pid;
10
11
12 events {
13 worker_connections 1024;
14 }
15
16
17 http {
18 include mime.types;
19 default_type application/octet-stream;
20
21 #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
22 # '$status $body_bytes_sent "$http_referer" '
23 # '"$http_user_agent" "$http_x_forwarded_for"';
24
25 #access_log /var/log/nginx/access.log main;
26
27 sendfile on;
28 #tcp_nopush on;
29
30 #keepalive_timeout 0;
31 keepalive_timeout 65;
32 #tcp_nodelay on;
33
34 #gzip on;
35 #gzip_disable "MSIE [1-6]\.(?!.*SV1)";
36
37 server_tokens off;
38
39 include /etc/nginx/conf.d/*.conf;
40}
i have almost checked all the article online but still configure it out.
the main problem i suppose is located in the nginx.conf file.
the default content in the nginx.conf is quite simple,
but i tried up the configuration posted online with no success.
so i suppose the right way on my server might be related to the plesk,
cauz it is intelligently installed by plesk.
do you have any idea on this point?
i really need some help, thx in advance.
by the way, the default nginx.conf file is like:
1
2 #user nginx;
3 worker_processes 1;
4
5 #error_log /var/log/nginx/error.log;
6 #error_log /var/log/nginx/error.log notice;
7 #error_log /var/log/nginx/error.log info;
8
9 #pid /var/run/nginx.pid;
10
11
12 events {
13 worker_connections 1024;
14 }
15
16
17 http {
18 include mime.types;
19 default_type application/octet-stream;
20
21 #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
22 # '$status $body_bytes_sent "$http_referer" '
23 # '"$http_user_agent" "$http_x_forwarded_for"';
24
25 #access_log /var/log/nginx/access.log main;
26
27 sendfile on;
28 #tcp_nopush on;
29
30 #keepalive_timeout 0;
31 keepalive_timeout 65;
32 #tcp_nodelay on;
33
34 #gzip on;
35 #gzip_disable "MSIE [1-6]\.(?!.*SV1)";
36
37 server_tokens off;
38
39 include /etc/nginx/conf.d/*.conf;
40}