Could someone with nginx experience take a look at my config and tell me if it works? I can't really test it in-house so I'm hoping someone has done something similar.
--
P.O. Box 3566 ::: Chapel Hill, N.C. 27515 ::: USA
Right now, I have two server blocks:
One to redirect example.com to www.example.com
server {
listen 443;
server_name example.com;
}
And another as the default server (for www.example.com)
server {
listen 443 default_server ssl;
}
I would really like to collapse that into one server block, something like this:
Is this the proper way to do this? Or should I just stick with the way I have it now? This is a working, production configuration, in case anyone is curious. I've googled articles that suggest this is the way to do it, but can't truly test it in-house.
Any thoughts would be appreciated.
Mark Haney ::: Senior Systems Engineer
VIF International EducationP.O. Box 3566 ::: Chapel Hill, N.C. 27515 ::: USA
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org