Hi, I want nginx server serve all images, JavaScipt and CSS files and for all other to proxy_pass http://127.0.0.1:8080; this is example of config file server { listen 80; server_name go; location / { proxy_pass http://127.0.0.1:8080; } } Beside nginx is go lang server on 8080 port. Is it possible and how to do that? Thanks inby vidak - How to...
I found solution in PHP I wrote $_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST']; and in server_name I have subdomain and domain Thanks.by vidak - Migration from Other Servers
Hi, I read lot of tutorials but couldn't find how to solve this problem. As I can see nginx server_name is $_SERVER['SERVER_NAME'] in PHP I tried server_name *.example.com .example.com; ... _; ... ""; some regex; but couldn't catch in PHP $_SERVER['SERVER_NAME'] with subdomain in inself. I have about 270.000 subdomains and this is realy important to me. Thanks in advance.by vidak - Migration from Other Servers