Different Default Documents For Two Subdomains That Go Against The Same Site IIS 7?
Sep 15, 2010
We have two subdomains for the same site, we would like that depending on the visited subdomain the initial page varies. But in IIS the default document setting is based on the web.config so...We know that we could use the http:/subdomain/page.aspx but its a requirement that we use only http:/subdomain in the links
Desired example: Click in link http:/subdomain1.web.com --> http:/subdomain1.web.com/page1.aspx
(our_website/page1.aspx)
Click in link http:/subdomain2.web.com --> http:/subdomain2.web.com/page2.aspx
(our_website/page2.aspx)
View 1 Replies
Similar Messages:
Jan 31, 2011
There are subdomains: sub1.domain.ru, sub2.domain.ru, sub3.domain.ru, sub4.domain.ru. On default page there is a code:
protected void Page_Load(object sender, EventArgs e)
{
string subdomain = Cache[key] as string;
if (subdomain != null)[code]...
Will users see their subdomain name in different subdomains(sub1.domain.ru, sub2.domain.ru, sub3.domain.ru, sub4.domain.ru) ?
View 1 Replies
Oct 20, 2010
point me towards any .NET API that will let me iterate the default documents (default.aspx, index.html, etc.) for the web site? I know I can parse web.config, but that doesn't always contain all of the default documents.
View 1 Replies
Oct 21, 2010
Using Visual Web Developer 2010 Express. I was used to creating a web app anytime and I would get a default page for starters and be happy. But today I find that when I pick either the ASP.NET Web Site or ASP.NET Web Application templates I get site.master and a bunch of site admin files that I don't want. Alternately when I select the empty versions of those templates, I get almost nothing at all. An almost empty web.config page and no Default.aspx page. There is nothing magical about having a default.aspx page in place, but it is an indicator of a change when I can only get a virtually completely empty website or a website with a bunch of bells and whistles I don't want.
Also, for some reason, when I create a new app or website as just noted, in the Solution Explorer I get aspx.designer.cs files showing as well as web.config files for both debug and release. Somehow some settings and templates must have changed, or am I missing something here? How can I get my settings/templates to go back to the way they were?
View 1 Replies
Mar 2, 2011
I'd like to html encode all user input on the ASP.NET MVC 2 site but default. Can this be done anywhere on model binder level?
If I disable input validation for action -- I will need to html-encode every other value. If I keep ASP.NET request validation on -- it will throw erros "A potentially dangerous Request.Form value was detected from the client"
P.S. I do use encoding when outputting data (<%: %> syntax), but I'd like to encode everything on posting it too.
View 2 Replies
Oct 26, 2010
we are upgrading the asp.net 2.0 web application to asp.net 4.0.
we have the many sub folders with default page (default.aspx)
and we are using the link like,
<domainname>.com/
<domainname>.com/folder1/
<domainname>.com/folder2/
<domainname>.com/folder3/
<domainname>.com/folder4/
it is working fine in asp.net 2.0
after the upgradation process, we didnt get above the URLs. i have checked site default page settings (in IIS "Document" default page settings), and default.aspx page is shows under settings.
the site url "<domainname>.com/" also does not working. if we call "<domainname>.com/default.aspx" then worlking.
View 10 Replies
Feb 19, 2010
Everything works as expected in VS under development (of course), but when deployed (local IIS) the log in view (sans css) comes up rather than the home index view. I've tried this with several test apps, including NerdDinner with the same results.
I want to allow unauthenticated users to browse most of the site, but I do have views that require authentication (fomrs). I don't want to see the login view by default, only when the user explicitly wants to log in, or trys to see a view that requires authentication. What settings need to be made to not default to the login view?
View 3 Replies
Mar 7, 2010
I am using SharePoint Server 2007 + C# + .Net 3.5 + VSTS 2008 + ASP.Net. And I am using collaboration portal template.
I am developing a custom aspx page and put it in _layout folder of a site and I want to apply default.master of the SharePoint site to this aspx page. Any samples about how to achieve this goal?
View 3 Replies
Jul 21, 2010
I just recently upgraded a site from 3.5 to 4.0. After editing the web.config, creating a new app Pool in IIS, configuring the site to use 4.0 and the new app Pool, I can no longer browse to any default.aspx page without explicitly typing 'default.aspx'. This site was originally written for .NET 2.0, upgraded to 3.5, and finally updated to 4.0 a few days ago.If I try to browse to http://[mysite]/ I see the following error:
Server Error in '/[mysite]' Application.The resource cannot be found. Description:TTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.Requested URL: /Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1However if I browse to http://mysite/default.aspx, everything works fine.
If I undo all the changes made to the web.config, and revert the site back to the app Pool used for 2.0/3.5 the site loads and runs fine. Restarting IIS will solve the problem for an hour to a day, but the issue will always come back. Other sites running on our sever which were not originally made in 2.0, but 3.5, have upgraded to 4.0 without this issue.
View 6 Replies
May 21, 2010
My company has a server running Windows 2003, IIS 6.0, Web Deployment tool 1.1. I also have a development machine running Visual Web Developer 2010 Express. I can't get the Publish command to work (gives me "can't contact MSDEPLOYAGENTSERVICE" even though I know it's running), so a couple days ago I built a publish package, copied it over, and ran it, which worked.oday I thought WebDeploy was having problems (turned out the problem was between the keyboard and the chair) so I uninstalled it and reinstalled it from the WPI. Now when I try to run the package I get
Error: The metabase path 'Default Web Site/MyWebsite_deploy' is not supported.
Paths must be of the format '/lm/w3svc/<siteid>/ROOT/...'.
Error: The metabase key '/Default Web Site/ROOT/MyWebsite_deploy' could not be found.
Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Error count: 1.
I have the virtual directory allready installed under Default Web Site.
View 1 Replies
Nov 1, 2010
I have a website sitting on an IIS 7 server: WWW.SITE.COM
I would like to create several sub domains that looks like SUBDOMAIN1.SITE.COM
I created an IIS website and i set the bindings to be http, port 80, the ip address of my server, and SUBDOMAIN1.SITE.COM
and the pyshichal path to a folder under SITE.COM
I restarted my website and clicked on browse, the browser than opened with the address: http://SUBDOMAIN1.SITE.COM
but the website doesn't show.
Do i have to do something with the DNS?
View 1 Replies
Sep 13, 2010
In IIS7 using UrlRewrite module I want to do something likes this. I tried everywhere, possibly this is wellknown problem, but couldn't find any usefull solution.Url "http://tom.mydomain.com" should be read internally as "http://mydomain.com/dashboard?g=tom"I am using ASP.NET MVC, just in case info is required.
View 1 Replies
May 6, 2010
I have a working website with multi language support. Now this multilanguage support its based on three flags (one for spanish, another for english and another for french) and cookies. I stablish a cookie with the current culture. Then I have resource files for each language (default.aspx.resx, default.aspx.en.aspx, default.aspx.fr.resx ...)All working ok.Now I want to change the language system to subdomains. I want es.mydomain.com, en.mydomain.com and fr.mydomain.com, because search engines dont index very well with cookie language system.
I have created three A ZONES (es, en, fr) in the DNS hosting provider. This A ZONES points to the same IP that the WWW ZONE. Even though www.mydomain.com takes the user to the default.aspx of the website, but the other zones not.en.mydomain.com, fr.mydomain.com and es.mydomain.com returns a webpage with the text: BAD REQUEST (INVALID HOSTNAME)I think I have to make some other change in my code (perhaps global.asax).I have done this in PHP web server, but I dont know how to do in a ASP.NET server.I have searched solutions, but I have a lot of confusing information, principally about DNS, but I think that this part its OK
View 6 Replies
May 16, 2010
I would like to create a few static subdomains like:
mycategory.mydomain.com
in a rather small website and would like it to point to the folder:
mydomain.com/mycategory
without showing such redirection in browser address bar.
What is an easiest way to achieve it? I can do it in either IIS settings, asp.net, C# code, etc
there are better ways then creating a few separate Sites in IIS - one for each subdomain.
View 2 Replies
Jul 14, 2010
I find myself in a difficult situation. We're working on an ASP.NET MVC 2 application which is comprised of multiple sections. It is a design goal to have these sections span across several subdomains. Each subdomain will have its own controller.
The challenge is that our hosting provider's control panel allows two forms of redirection for subdomains, and neither of them seem to fit the bill. The choices are:
Redirecting to URL. Choice is given whether to redirect to an exact destination or a destination relative to the request URL. Redirecting to a specific folder in my hosting space.
I'll try to illustrate the intended behaviour. Assuming the default route is {controller}/{action}/{id}, I'd like the URL http://subdomain.welcome.com/a/b be handled by the MVC Application like http://welcome.com/subdomain/a/b.
The URL redirection could solve this problem, except for the fact that the user sees a URL change occur in the browser. We don't want the client to see the redirection occur.
Redirecting to our MVC apps root folder doesn't work at all. The app doesn't pick up the request and a 4xx error gets passed back by IIS.
edit:
In the interest of finding an answer, I'll simplify this a bit. The "redirect to URL" doesn't do what I want so that leaves redirecting to a folder.
If I'm redirecting a subdomain to the root folder of my MVC App and IIS wont pick up the requests, is this a limitation of IIS or my provider?
View 2 Replies
Jan 11, 2010
I have setup my website (ASP.NET 3.5) with AJAX, running with no problems at all.
When I test my website locally and on my main top level domain, there are no problems.
When I'm on a subdomain page, AJAX client side framework fails to load. I observed the problem deeply and found that whenever I'm on a subdomain page, WebResource.axd DOES load but ScriptResource.axd DOESN'T load (returns 404 Not Found error). I think I should modify some entries at web.config file, but I have no idea on what to do?
View 3 Replies
Jan 14, 2011
I am running into a unique problem (not easily googleable). This is what I am trying to do:Will be using subdomains: x.abc.com, y.abc.com, z.abc.com, etc.There will be single website hosted at abc.comBased on the subdomain passed (x,y,z,etc.), I need to switch databases and web.configs (appsettings, authentication, authorization info)For ex: If a user goes to x.abc.com, the site will select appropriate db & config settings and forward user to abc.com with db & settings cached/saved for the user session.Is it possible to have one hosted site and multiple subdomains that select appropriate config settings? Reason I need to do this is because credit card processor needs static url for requests and responses.
View 1 Replies
Jan 11, 2011
I'm writing a SaaS app in C#/ASP.NET, hosted with IIS7. I want to create a personalized subdomain for every customer that signs up, i.e. fred.mydomain.com, bob.mydomain.com, each of which will point to the same app, just with a different skin per customer.
How do I create these subdomains programmatically?
View 1 Replies
Feb 4, 2010
I would like to know how to implement Single Sign On across subdomains running on a mixture of programming platforms, asp.net and php?
View 1 Replies
May 28, 2010
I would like to create subdomains Dynamically under my domain using asp.net ,C#? I can not find good solution for this. What are the things i should do to complete this.
Scenario:
1.user register with site
2.domain name should be: http://username.domain.com
View 1 Replies
Oct 3, 2010
I want to deploy multiple asp.net applications on same hosting with subdomains. How it should be manged ?
I just created a subdomain and deploy application in its folder; when I tried to access application with subdomain it shows the following error:
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
View 5 Replies
Nov 13, 2010
Graphic:wap.mysite.com -----------> mysite.com/wap/index.wmljack.mysite.com ------------> mysite.com/jack/index.aspxob.mysite.com ------------> mysite.com/bob/index.aspxjack2006.mysite.com ------------> mystie.com/jack2006/index.aspx
View 4 Replies
Oct 10, 2010
Consider that I want to create 10 websites in IIS, each of them pointing to the same website on local hard drive, each one running the same code, but on different subdomain.subdomain1.domain.com, subdomain2.domain.com, ..., subdomain10.domain.comHow can I add multiple connection strings in my web.config file and bind each connection string to a different subdomain ?I want to do this because every website will have a different database with different data.
View 2 Replies
Apr 21, 2010
I have 2 subdomains:
www.mysite.com
store.mysite.com
I followed these instructions: http://www.codeproject.com/KB/web-security/aspnetsinglesignon.aspx
The only thing I don't understand is where to put the cookie code?
[Code]....
Does this go in the LoginControl_LoggedIn event? Application_AuthenticateRequest?
Also, what if I have 2 different domains?
View 2 Replies
Oct 21, 2015
I am planning to have 2 subdmains on my IIS server. Example - [URL]. So if someone logs on Portal and if we clicks on the App link, he should be successfully logged into App.
SO basically 1 signin for both subdomains. How to achieve it in ASP.Net 4, C#, VS.Net 2013?
View 1 Replies