OK thanks Maxim. I will check your recommendation and will let you know. --Manishby manish-ezest - Nginx Mailing List - English
Hello Maxim, Like you suggested I have set "recursive_error_pages" to off but still I am facing the problem. This time I am getting "504 Gateway Time-out" error. I have already shared my NGINX and vhost configuration. We have one fastcgi script running for serving error pages which checks the entry of sample.xml(contains url) file and redirect the link to particular locatioby manish-ezest - Nginx Mailing List - English
Hello Maxim, I tried enabling debug mode but still I am not able to figure out the issue and its possible solutions. I disabled this rewrites which are rewriting to index.html ## Rewrite all directory lookups to 'index.html' #rewrite ^(.*)/$ $1/index.html permanent; ## Rewrite all open strings to index.html #rewrite ^(.*)/([^\.\?/]+)$ $1/$2/index.html permanent; and added this oneby manish-ezest - Nginx Mailing List - English
Hello Wandenberg, Thanks for your help. Finally it is working. I included all the mime types in a file and included inside map directive and used it in the location / {} directive with proxy hide parameter like you suggested. --Manishby manish-ezest - Nginx Mailing List - English
Hello Maxim, The server_name(website) is a dummy name as I don't want to disclose the site name. I might have mistaken while editing the name. But I ensure you that the logs I have provided is correct. I am pasting my original configuration which is working like a charm. If I change anything from it like adding try_files as you suggested, or some rewrite rule for removing .html extension in loby manish-ezest - Nginx Mailing List - English
Hello Wandenberg, Yes, the back-end(s3 bucket) is sending Content-Type header for each request and what I heard from the developers that the header is must for the site to work properly. The issue started when I got the request of enabling content-type header of all the json files to application/json. As the default content-type in NGINX is application/octet-stream, the JSON files are serveby manish-ezest - Nginx Mailing List - English
Hello wandenberg, This procedure is not working for internet explorer. The CSS are not loading properly. so we have to somehow get the Content-Type in the header. Is there anything we can use? --Manishby manish-ezest - Nginx Mailing List - English
Hello Maxim, I am getting 499 error when I try using try files directive as you suggested. It got stuck and no response from the server. 50.50.50.50 - - [08/Aug/2014:10:12:01 +0200]"GET /aaa/bbb/ccc/index.html HTTP/1.1" 499 0 "-" "Wget/1.14 (linux-gnu)" 4.678 --Manishby manish-ezest - Nginx Mailing List - English
Hi Wandenberg, Is there any way to show the Content-Type in the header as well? --Manishby manish-ezest - Nginx Mailing List - English
Hi Wandenberg, As you suggested I added "proxy_hide_header Content-Type;" in location / {} directive and I am getting 200 but how would I check what is the Content-Type. I usually check with curl command. But with curl command I don't find the Content-Type since it is hidden now. Is there any other way to confirm the changes? # curl -v http://www.aaa.com/aaa/bbb/ccc/ddd/eee/fff.jsby manish-ezest - Nginx Mailing List - English
Hello Maxim, Thank you for your response. Here is the my nginx settings **************my NGINX.conf******************** user nginx; worker_processes 1; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; worker_rlimit_nofile 30000; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$reby manish-ezest - Nginx Mailing List - English
Hello wandenberg, Thank you for your response. I truly appreciate your help. I tried this options given below ######First Method############### 1. Edit nginx.conf and add map $uri $custom_content_type { default "text/html"; ~(.*\.json)$ "application/json"; } 2. Put the custom map in location directive location / { proxy_redirectby manish-ezest - Nginx Mailing List - English
Hello All, I am facing some issue regarding nginx redirection. I want to remove .html extension from all the html pages and all the index.html pages. For example 1. http://www.aaa.com/bbb/ccc.html should show the content of http://www.aaa.com/bbb/ccc.html but the URL should show http://www.aaa.com/bbb/ccc 2. http://www.aaa.com/index.html should show the content of http://www.aaa.com/indby manish-ezest - Nginx Mailing List - English
Hello All, Can somebody answer this question? I am facing this issue from many days. --Manishby manish-ezest - Nginx Mailing List - English
Please refer this page http://forum.nginx.org/read.php?2,239473,252358#msg-252358by manish-ezest - Nginx Mailing List - English
Hello Appa, I am having the same issue. I want NGINX to serve all the json file from upstream as a content type of application/json.I tried with map just like you suggested but I am not able to figure out what should be inside map(That you have written below), Can you please suggest? map $upstream_http_content_type $s3_content_type { # S3 -> real... } location ~ \.json$ { prby manish-ezest - Nginx Mailing List - English