Answer the question
In order to leave comments, you need to log in
How to properly set up a local cache server on nginx?
All the best!
I'm trying to solve the problem of slow access to some resources by using a local proxy server.
But that’s what he can’t write the config correctly (I didn’t particularly come across nginx), when I check with the nginx -t command, I get an error:
nginx: [emerg] https protocol requires SSL support in /usr/local/nginx/conf/nginx.conf:14
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
events {
worker_connections 1024;
}
http {
proxy_cache_path /var/cache/nginx_cache levels=1:2 keys_zone=all:32m max_size=2g;
server {
listen 80;
server_name localhost;
location / {
proxy_pass https://some.site.com;
proxy_cache all;
}
}
}
Answer the question
In order to leave comments, you need to log in
You write proxy_pass https://some.site.com , but the above section is only about http 80
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question