A bit down on this nginx config reference page you’ll see:
rewrite ^ http://example.com$request_uri? permanent;
What is the meaning of ^ above?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For rewrite, the first argument is the match pattern and only applies to the path portion of the url, not the domain. In regular expressions,
^matches the beginning of the input. For example,^/photos/.*$would match paths beginning in ‘/photos/’. By itself,^is a shortcut for all paths (since they all have a beginning).