apache - nginx rewrite wildcard subdomain to base php file -


i trying create sub domain each user.so pointed wildcard subdomain server.my server running nginx , php-fpm.all subdomains

username.site.com/page 

should rewrite to

/index.php?user=username&page=page 

i new nginx please me.i found out , how apache in link how let php create subdomain automatically each user? , please explain can modify needs.i tried apache nginx rewriter , doesn't works.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

python 3.5 - Pyqtgraph string in x tick -