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.
Related
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 have a scenario where I have many domains (could be hundreds) pointing to my one web application for example
site1.com
site2.com
site3.com
.... etc
All point to my single web app, this app will be in a shared hosting environment.
The only way I can think of configuring these bindings in IIS is to send my shared hosting company an email every time I need a new binding. Is there a better way? for example some how sending all host headers to my site? How do I do that?
You probably need your own IP address to do this. Then you could just not specify a Host name in your binding:
You will need to specify your IP in the binding though.
This means that as long as your DNS points all sites to your IP, then your site should respond.
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
I'm trying to deploy my Reporting Services application to a remote site. I'm using url access and I want to impersonate a user based on an ip address range.
Is this possible?
Maybe by putting some firewall rules between the reports server and the client you could stop deny/allow certain ip addresses, but i've never come across anything like that built into reporting services
There isn't anything like that built into Reporting Services. But I can think of a couple of alternatives.
Usually the Reporting Services website and web service are running under IIS. You can configure IIS to block access by IP address. Depending on what version of IIS you are using, the instruction may vary. I would just google it. This would be the easiest way in my opinion.
First thing to note is that I haven't tested the second way, it is just an idea. Since the Reporting Services website and web service run under Asp.Net, in theory you could create a custom IHttpModule and add it to the web.config. Hanselman has an nice article about coding up such a IHttpModule and configuring the web.config here.
This is an old post, but we are trying to do the same thing. Firewall is the way to do it - SSRS doesn't use IIS, so it isn't possible through IIS.