Answers for "nginx clashing with apache"

0

nginx clashing with apache

server {
 listen   127.0.0.1:80;
 server_name  some.name another.dname;
 access_log  /var/log/nginx/something-access.log;
 location / {
  proxy_pass http://localhost:8080;
  proxy_redirect off;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 }
 location ~* ^.+\.(jpg|js|jpeg|png)$ {
  root /some/where/on/your/disks;
 }
; put your static hosting config here.
}
Posted by: Guest on September-22-2021

Browse Popular Code Answers by Language