3

is it possible to create two webapplication with the same Port on IIS in PowerShell. I belive it's not extending webapplication. Each Webapplication has her own content data base. Any idea doing that with PowerShell.

1

As long as you use Host Headers for both web applications, you should be fine.

Take a look at the New-SPWebapplication cmdlt and be sure to specify the hostheader parameter when creating the web applications.

|improve this answer|||||
  • you are right this is the powerShell Code if any one need it : New-SPWebApplication -Name "WebApp" -ApplicationPool "WebApp" -AuthenticationMethod "NTLM" -HostHeader sharepoint.webapp.com -URL "webapp.com" -ApplicationPoolAccount (Get-SPManagedAccount "DEV\spfarm") -Port 2525 -DatabaseServer SRVDEV -DatabaseName WSS_Content_WebApp and for the second you have to change the names and save the same port – Imen Turki Feb 1 '16 at 17:01
  • Correct, but is this for 2013 you want to use claims as authentication method. And don't forget the DNS entries as Waqas mentions below. :) – Christoffer Feb 2 '16 at 8:58
1

You need two HostHeaders( DNS), then you can create more than one Web App on single Port.

I.e If you have www.abc.com and www.efg.com, On the Web Application Creation Page. Enter the Name of Web app, Port Number and HostHeader.

http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/02/12/how-to-create-a-second-web-application-using-the-default-port-80-in-sharepoint-2013.aspx

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.