I want to create a web application using powershell. Below is a list of commands I execute to achieve this and all works fine. Web application exists everywhere. But I cannot access it by it's url. I think I don't have a good underestanding of "HostHeader" thing.
When I type web application url in my browser I get an error indicating that the broswer cannot find this web site.
And I Insist to use powershell not central administration.
$user = Get-SPManagedAccount "Pouyanserver\Administrator"
$auth = New-SPAuthenticationProvider
New-SPWebApplication -Name "Mahan Air" -port 8080 -HostHeader "MahanAir" -url "MahanAir:8080" -ApplicationPool "Mahan Air" -ApplicationPoolAccount $user -AuthenticationProvider $auth
what is the problem ? and what is the host header anyway ? when it just does not work?