When you type in "dev1.example.com." into your browser or you request that Host with your HTTP client, I want it to redirect to "dev1.example.com". I've attempted to do this with the following server block:
server {
listen 80;
server_name dev1.example.com.;
add_header Pragma no-cache;
add_header Expires "Sat, 01 Jan 2000 00:00:00 GMT";
add_header Cache-Control "private, no-cache, no-store, max-age=0, must-revalidate, post-check=0, pre-check=0";
return 301 http://dev1.example.com$request_uri;
}
However, nothing seems to happen. I've attempted to clear my DNS resolver cache, clearing my own browser's DNS cache, and I've even requested the url with Curl. The URL I've requested is "dev1.example.com." I would expect it to redirect to "dev1.example.com".
dev1.example.com.
?dev1.example.com