I have deployed a SharePoint 2013 server farm with a web server (WFE1), an application server (WApp1) and a sql server. At first, WFE1 and WApp1 worked as application server and as web server, but i decided implement a three-tier server farm. The question is the next one, when i creating a new web application, the url that appear for that web application is the url of WApp1 instead of WFE1, how i fix that problem. Temporarily i manually fix, but i wish resolve this issue in an automatically way.
You will find it easier if you setup DNS entries for your web application urls. This will help if you need to change servers in the future etc. That way they will be set automatically (in future, set your host header value while creating the web application).
You can still modify this now. First create a DNS entry (for example myintranet.contoso.com) which points to the WFE1 server.
Once that is done, go to Central Administration and Alternate Access Mappings. Select your web application, and click Edit Public Url. Set it to the DNS entry name.
You should now see the web application Url as the DNS entry instead of the server name, and also be able to access it via DNS too.
This Technet article explains Alternate Access Mappings.