empty $_SERVER['SERVER_NAME'] php variable. Let Nginx support any wildcard domains hostname
# vim /usr/local/etc/nginx/nginx.conf
### make sure server_name variable is commented out.
#server_name localhost;
### add this line
fastcgi_param SERVER_NAME $http_host;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment