i've just migrated a iis6 machine to a iis7 new one with the msdeploy utility.
Now i need to change the ip binding address of all web sites, is there an automated way to do that?
Thanks
You can do that through appcmd.exe. Type: %systemroot%\system32\inetsrv\%systemroot%\system32\inetsrv\APPCMD set site "<your site here>" /?
to see what are your options.
Related
I am new to the web world, so I apologize if this question is silly.
I have an ASP.NET web site I wish to deploy.
The server has IIS 7 deployed on it, and I've added the site
to that IIS server as a web site.
For the time being I don't have a domain mapped to the site,
I would like the users to browse for the site directly by using the server's IP.
Is that even possible? because I failed to do it.
The only option that worked so far is using the hosts file to declare
a fake domain.
It would be nice if someone could clarify that issue for me.
Thanks a lot,
Omer
If you set the site bindings to IP address: All Unassigned on port 80, and do not provide a host name, then any request that makes it through to IIS should be served by that site. Make sure you stop any other sites that might have that binding (e.g., "Default Web Site" is normally bound to this).
In order to access the site by IP, you can't have the host name populated in IIS. Your best bet would be to use the "Default Web Site" that's already in IIS, and point that to your application.
Using IP is possible, but you need to make sure your users can see this ip from their machines.
I have to set two web sites on the same IIS 7.5.
One of them is Classic ASP with MSAccess Database. The other one is ASP.NET. Meaning they will use different Application Pools.
I only have one port open : 80.
How can this be configured?
Thanks.
You can create 2 applications under the same website using the same port (80).
Each one can have different Application Pool.
This way, to browse applications, you will type
http://mywebsite/app1
http://mywebsite/app2
Otherwise you can have 2 different websites using the same port, but this involves configuring host header bindings over IIS and creating C-NAME record in your DNS
This way, to browse applications, you will type
http://app1.mydomain.com
http://app2.mydomain.com
You need to configure host headers ("Bindings") in IIS for your first site before you can open the second. In other words you have to tell IIS which hostname leads to the first website, cause you can't run 2 websites as "default" hostname.
I have a win 2008r2 server. The default website has Enabled Protocols set to "http,net.tcp". When any new applications are created under the default website I would like then to default to having the same enabled protocols. Could anyone please advise how to do this? Currently when I Add Application one is created with an enabled protocol of only "http"
I found this was possible using the IIS provider for Powershell. The following line worked for me:
Set-ItemProperty IIS:\sites\$NetTcpWebsite -name EnabledProtocols -Value "http,net.Tcp"
In order to get the protocols to cascade from the website level down to the application level I had to do the following:
First I created the website and the applications.
Second I ran the following:
$iisAppName = %YourWebsiteName%
Set-ItemProperty IIS:\sites\$iisAppName -name applicationDefaults.enabledProtocols -Value "http,net.tcp"
That solved it for the original question. The answer from Rob will only set the Enabled Protocols profile at the website level which leaves your applications and virtual directories without the proper protocols enabled.
net and tcp protocols are used for WAS. They are disabled by default to minimize the surface for attacks.
Are you hosting WCF applications in order to need this?
http://technet.microsoft.com/en-us/library/cc735229(v=ws.10).aspx
Best regards.
I struggled with this for a while and looked at ways to include it in the MSI (WiX or other) or in the web.config file of each application or service. In the end the easiest solution was to change the Website default in IIS so that it applied to every application and service without needing to change the MSI or web.config. Basics steps are: In IIS Manager, click on the Sites node, then click "Set Website Defaults...", change the "Enabled Protocols" property to http,net.tcp
How can I configure a wordpress site built using webmatrix on windows to run on a specific hostname instead of localhost with a port number.
For example my site is currently running on http://localhost:64044/
I need to be able to view it via http://www.mydomain.co.uk
I know I can edit my hosts file in windows to point my domain to my local pc like so:
127.0.0.1 www.mydomain.co.uk
but I cant see how or where to configure hostname bindings for the wordpress site in webmatrix?
probably you can't do it directly from WebMatrix. But you can do it manually by editing IIS Express configuration file %userprofile%\documents\iisexpress\config\applicationhost.config (WebMatrix uses IIS Express web server). Take a look at following posts
Binding IIS Express to an IP Address
Is it possible to use custom host headers / bindings with IIS7 Express?
I Use Visual Studio 2010 with ASP.NET 4.0 and IIS7.
When I open my site, the URL looks like this
http://localhost:6549/Website/help/tab/contact-us
I want a friendly URL:
http://mysite/help/tab/contact-us
or anything that will help me to get rid of the Port 6549 from URL
http://localhost/Website/help/tab/contact-us
I use ASP.NET Development Server which is what Visual Studio use when you run a localhost website
Wait !! Please make distinction between "Properties window" and "Property pages" of the project. I always tried your advices, but using "Property pages", and there is no such property like Use dynamic ports on that page. This property can be found only in the "Properties window"
Assuming it's the ASP.NET development server:
To get rid of the port number you need to do this
- go to properties of the project
- click the web tab
- check the specific port and assign 80
There is also a virtual path setting here which you could set to /
Is your solution configured to use IIS and not the ASP.NET Development Server? There is also a property on the web application where you can specify the port (or allow for a random port to be chosen) - port 80 is the appropriate port - this requires administrator access to the process that is launching the web site.
Edit:
I was thinking you can use your host file to redirect the user, but I checked and you can't redirect to a port.
If you have IIS7 on the machine, just make the location of your web development folder into a virtual directory on IIS.
Then you can access it by http://localhost/website/