IIS redirection to external web site - asp.net

Is it possible to create local web site in local IIS with some domain, for example. dummy-website
and when locally enter that domain to be redirected to some other web site in internet, note that after redirection url need to stay dummy-website, content of web site from internet needs to be displayed in requested local domain.
Tnx

yes there is:
In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties.
Click the Home Directory, Virtual Directory, or Directory tab.
Under The content for this source should come from, click A redirection to a URL.
In the Redirect to box, type the URL of the destination directory or Web site. For example, to redirect all requests for files in the Catalog directory to the NewCatalog directory, type /NewCatalog.
and there you go!
Hope this helps.

Related

Classic ASP GoDaddy Plesk How to bind my domain name with login.asp

I do not know how to launch my website at GoDaddy using Plesk. I have uploaded my files to all root directory. At IIS Settings,I have added login.asp to the default documents and move up the order.
Now when I click Preview
I get the following site and Default.aspx loads
If I add login.asp at the back of the URL, my login.asp page loads Ignore the error
But if I click on Open at Plesk, I get error
Now how to I bind www.mydomain.com to login.asp?
Called the support and they will fix it.

How to Upload website over internet by using IIS and domain

Please Explain me step by Step, how to host a website over internet. by using iis server with help of domain
To host asp.net site in iis you could follow the below steps:
1)open the visual studio. Select your site and right-click on that-> Click publish.
2) in pick up publish target Select folder option and create choose destination where you want to publish the site. (make a new folder and publish a site in that folder) and then select publish.
3)open IIS manager(if not installed then installed it first).
4)expand the server name and right-click on sites and select add a new site.
5)enter the site name, physical path, and site binding details.
(Note: you need to have a public IP first, and bind the domain to the IP at where you purchased the domain name. after that, in IIS, bind IP and hostname as usual)
6) click ok.
if you have url rewrite rule and other external settings in your site you need to install that external module in iis.
for more detail please check the below link:
https://learn.microsoft.com/en-us/iis/install/installing-iis-7/installing-iis-7-and-above-on-windows-server-2008-or-windows-server-2008-r2

IIS issue with redirectting to Login Page in sub folder instead of root folder

I have an application deployed on IIS on server for testing. There is a main domain on IIS say www.abc.com and it has multiple separate web applications under it.
e.g. there is an application, say xyz, running under www.abc.com i.e.
www.abc.com/xyz/Login.aspx
You can see that there is a Login.aspx page on root in xyz. (Remember xyz is itself a web application under www.abc.com domain).
Now xyz has a folder, AutoUpdate, which has also a Login.aspx page. If someone tries to access pages under Autoupdate folder, it must be redirected to the Login.aspx page under Autoupdate, but in the above mentioned hierarchy, it redirects the user to Login.aspx which exists in root folder.
However if I deploy that application, xyz, files under different domain directly, i.e. www.cde.com then it works perfectly and redirects the user to Autoupdate Login.aspx page if someone accesses the Autoupdate pages without authentication.
It is strange issue, not sure, if this issue is raising because of hierarchy of web applications in a single domain.

can't get my web site, on IIS, to work with URL beginning with www

I added my vb.net web app to IIS 8 on my Azure Windows 2012 server R2 VM.
Then, I did IIS > right-click Sites > Add Web Site
and set "Site name" to my_site.org
and set Physical path to project directory for my web site
and set "Host name" also to my_site.org.
Works great. From Internet, I browse to http://my_site.org and it runs OK.
Now I want people to also browse to www.my_site.org
but when I Add Web Site, just like above, but for www.my_site.org
it adds ok, but when I select www.my_site.org and click IIS Browse www.my_site.org browser pops up but reads "webpage cannot be found"
Nor can I browse it from Internet.
Because what is WWW? essentially that is a subdomain that you would need WWW to exist for it to load WWW.
Best option may be to set up domain forwarding to WWW, maybe a CNAME in your domain options?
From Azure documentation, "You must also provide the domain or subdomain alias for the CNAME, such as www if you want to create an alias for www.customdomain.com. If you want to create an alias for the root domain, it may be listed as the '#' symbol in your registrar's DNS tools."
More at:
https://azure.microsoft.com/en-us/documentation/articles/cloud-services-custom-domain-name/
Hope this helps! :)
Shahed

point ip to a virtual path

I have a webserver asp.net with 1 ip and several domain name.
let say:
174.1.1.1
with domain.com domain2.com domain3.com
If i go to 174.1.1.1 it show
"Under Construction
The site you are trying to view does not currently have a default page. It may be in the process of being upgraded and configured."
So If I navigate to 174.1.1.1 I want it redirect to domain2.com
so how can I do that?
I'm using visual studio 2010 with win xp and iis
IIS6: To redirect requests to another Web site or directory
In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties.
Click the Home Directory, Virtual Directory, or Directory tab.
Under The content for this source should come from, click A redirection to a URL.
In the Redirect to box, type the URL of the destination directory or Web site. For example, to redirect all requests for files
in the Catalog directory to the NewCatalog directory, type
/NewCatalog.
IIS7: Configure the Web Server to Redirect Requests to an Exact Destination
Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7).
For information about navigating to locations in the UI based on your
IIS administrative role, see Navigation in IIS Manager (IIS 7).
In Features View, double-click HTTP Redirect.
On the HTTP Redirect page, under Redirect Behavior, select Redirect all requests to exact destination (instead of relative to
destination).
In the Actions pane, click Apply.

Resources