How to configure nginx to enable kinda ‘file browser’ mode?

You should try ngx_http_autoindex_module. Set autoindex option to on. It is off by default. Your example configuration should be ok location /{ root /home/yozloy/html/; index index.html; autoindex on; } Without autoindex option you should be getting Error 403 for requests that end with / on directories that do not have an index.html file. With this … Read more

How do I rewrite URLs in a proxy response in NGINX

We should first read the documentation on proxy_pass carefully and fully. The URI passed to upstream server is determined based on whether “proxy_pass” directive is used with URI or not. Trailing slash in proxy_pass directive means that URI is present and equal to /. Absense of trailing slash means hat URI is absent. Proxy_pass with … Read more

Tuning nginx worker_process to obtain 100k hits per min

Config file: worker_processes 4; # 2 * Number of CPUs events { worker_connections 19000; # It’s the key to high performance – have a lot of connections available } worker_rlimit_nofile 20000; # Each connection needs a filehandle (or 2 if you are proxying) # Total amount of users you can serve = worker_processes * worker_connections … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)