Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Rewrite rule for all domains. (3 replies)

$
0
0
Pardon me if I missed this in the docs...

My issue is that I want to rewrite every domain and not create a server
block for each.

I am trying to rewrite every domain thats pointing to Nginx

from www.server.com to server.com

currently I am doing uwsgi_pass unix://$host.sock

but if the host name has the www prefix then my socket is not found...

Currently I am using the default nginx.conf file with only one line
added uwsgi_pass

Thanks in advance for any help.






_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>