i am running iis7. the web site has 2 unique applications each in its own folder structure and each installed as an application in iis.
the server has 2 ip addresses associated with it. in iis6 on the application property page all you had to do was specify an ip address and that address would automatically route you to the associated application.
this feature has either been removed or well hidden in iis7. so the question i have is, how do you associate a specific ip address with a specific iis application in iis7.
urlrewrite doesn't seem to cover this case but then again its 3 in the morning...
we are associated ip addresses with specific applications because long term the transaction volume associated with each application will dictate using its own server.
\
Open iis7 -->> Right Click Site -->> select Add Website -->>
here you can set ip address,port,physical path of your app(ie in wwwroot) and hostname.
Right click on the web app and go to Edit Bindings.. you set the IP and/or hostname bindings there, they've also moved binding a certificate to an IP there too
edit after discussion:
If you need to bind applications to different IPs and/or hostnames then you need to set them up as seperate website applications. This can be done by right-clicking Sites and selecting Add Website
You can remove or stop the Default Website Application once you've configured your applications.
For further information, the reason you can add application within a Website is so that you can have say, a blog in a subdirectory eg www.somewebsite.com/blog where the main website is one app and the blog is another. Could even be a wordpress where the main website is asp.net
Related
I have two web applications that are both using the same ssl port number https://localhost:44300/; which doesn't allow me to run both of them at once.
How can I change the port number for one of the web applications to use port number 44301?
I right clicked on the project, then I clicked on the Web tab but this will only allow me to change the http port and not the https port.
To complement Dandy's answer comment, this is a picture of the section where you can make changes relating to the server/port you want to use for your app. You can also select if you want to use a local IIS server or a remote host.
Is it possible to access a page on an umbraco platform only given an ip address? I have an umbraco site that I need to access in an iframe, but the site does not have a domain name. All I have is the IP to the server. Is this possible?
Its possible.
Although I wouldn't consider it a pretty solution, here is a quick way to do it.
Note that if the server is using IIS, you may have to remove the binding from the default site first.
I'm assuming your hosting server has a fixed external IP
In umbraco, add the current IP as a domain for the umbraco site.(Right-click your base-node and select "Manage Hostnames")
Republish all your nodes, that way the site won't rewrite the url to available domains(If that is what you're aiming for, then disregard point 1)
Configure the dedicated server to transfer traffic to the umbraco site. (And check firewalls)
And presto, that should do it.
How to run asp.net application without exposing the virtual directory in the URL. Like stackoverflow.com does?
Usually when you deploy your ASP.NET MVC application, you create a virtual directory on IIS and point users to the virtual directory. E.g. http://MyDomain.com/MyApp. However, StackOverflow appears without the virtual directory being exposed in the URL. How is this done? URL rewriting or other configuration techniques ?
You do not have to create a virtual directory, you can create an entire new site in IIS. From IIS manager, right click the sites folder listed under your server (IIS 7 or higher. Also available in IIS6 but views/click locations are different). Then select New Website. This brings up the following window in which you can specify the location for the website content, host header information (what domain name to respond to), port information (eg 80), app pool, etc.
By doing this, you can host multiple domains on a single IIS server. Note that if they are all sharing port 80, you have to specify a host name so that IIS knows how to handle multiple sites on a single port. If you do not specify a host name, only one of the websites will be active, the rest will be in a stop state.
You don't have to create a virtual directory. There's a "Default Site", which will load directly under the domain. I can't speak for StackOverflow, but given that they're probably load-balancing with multiple servers already, it's highly unlikely that they're running anything but this site on the web server.
I have a webdomain www.MyDomain.com and a MVC4 web application MyMVCWebApp.
First I publish the application to a local destination.
For instance: C:\TempLocation
And then I host it to my domain with a FTP-tool (FileZilla??)
The files will be hosted but I can't find the webpage.
Which url do I have to write?
http://www.MyDomain.com/MyMVCWebApp/Home/Index.chtml or something?!
Do I have change the settings in my web.config?
What do I have to do?
You can't host an application on a domain.
An application is hosted on a web server. A domain name is only a way to translate an easy to remember address like "www.google.com" to the web server ip address which looks like 173.194.66.104
It is possible to purchase a domain without a web server.
So before going further:
Check if you actually bought a domain only, or a domain with a server
Your domain should redirect to your server ip address, you can see if he is correctly configured by opening a command prompt and doing
C:\> ping www.yourdomain.com
If this is not the case you will need to update the A record of your domain, and wait for the update to be replicated on DNS server worldwird.
If you have a managed server, you should check your hosting provider website. They usually provide in depth documentation, and they all have a different way to do things. Most of the time indeed you will be able to upload your files using a FTP software such as Filezilla.
However, in order to host a MVC 4 application you need a server with
the IIS web server, which means that you need a Windows server. So if
you have a Linux server, you should contact your hosting provider
support and tell them you made a mistake during your order. (It is
possible to host a MVC 4 application on Linux, but I don't think it
is often provided on managed servers)
If you have a dedicated server you are on your own.
The URL you will have to write to access your application will depends on what you have configured in the RegisterRoutes method of the RouteConfigs.cs file.
I recommend you to watch the last video on this page to have a better overview of the possibilities.
I'm working on a clients pre-existing web site. I would like to take the solution they sent me and host it within my web site so that I can make changes to it and the client can see them without modifying their current live version without their approval.
It would be nice to store on a sub domain. How do I contain the web site within a folder so that it doesn't conflict with my web.config and other files?
All you are talking about is taking their files and hosting them on a domain of your choice ... this is generally deemed a Dev Site. Nothing fancy here, just create a IIS directory or application for the client's version of software on your server machine and map your domain to it via DNS settings.
Here is an article on creating sub domains
http://forums.asp.net/t/874598.aspx