I think I've run into a bad written configuration files issue, but first of all my configuration:
Cause of the problem encountered:
after installing all the said components, the wordpress site was working well, but the url displayed the IP as the domain name of my site instead of the correct "mydomain.tld" or "www.mydomain.tld".
I managed to solve this putting the following rewrite rule in the main config file of my site in /sites-available
rewrite ^ $scheme://www.mydomain.tld$request_uri last;
BUT, having this rule active locks me out of the wordpress administration page (mydomain.tld/wp-admin/) in a way that seems to be that this rule triggers a loop during the authentication process at "mydomain.tld/wp-login.php" page redirecting at the same page (wp-login.php).
I'd say im new in nginx managing and i want to figure out what the #?@! is wrong
thanks for all suggestions
These answers are provided by our Community. If you find them useful, show some love by clicking the heart.
If you run into issues leave a comment, or add your own answer to help others.