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

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.

Related

IIS redirection to external web site

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.

When web.config is created server gives 500 server error

I'm new to web hosting. I have IIS 7.5 server and some WordPress sites are installed on this. and they use pretty URLs with them and has rewrite rules in web.config file.
I tried to setup a new WordPress site and when site is created on IIS it does not seems to be having a web.config file inside the site root. So I manually created a one, and when it is created site gives 500 internal server error (even with blank web.config).
When web.config is removed home page gets loaded. What am I doing wrong?
The web.config is only really needed for URL re-writing.
Because you created a new site, the WordPress code that detects and generates the web.config file has not yet run.
To trigger it, login to admin dashboard, go to permalinks and just click save. This will generate the web.config file.
web.config file contains some configuration information....This file will be generated after seeting up dll's(In case of plugin configuration)..once we hit the url for the first time it will be generated in domain home...
So if you place a blank file...it doesn't have any information..so you're getting 500 error.

browsing an application's default page redirects to localhost/default.aspx and gives 404 error

There is a login page on my app, once I login, it should redirect to Default.aspx:
On VS local setup, the URL for redirect is like this-
"http://mydomain.com/testApp/account/Login.aspx?ReturnUrl=/Default.aspx"
which redirects to "http://mydomain.com/testApp/Default.aspx"
Now I have published an application on IIS7, and I am able to browse it directly.
But when I login, the redirect page is always coming as :
mydomain.com/Default.aspx instead of mydomain.com/testApp/Default.aspx.
I did try setting default page as testApp/Default.aspx, but this does not help.
Do I need to change the querystring for running on IIS?
If I run the app directly and type mydomain.com/testApp/Default.aspx, it works fine.
Any pointers?
Note: Please replace mydomain.com with locahost.
I figured the issue. The relative path in Query string for redirect should have ~ to access root folder after deployment on IIS.

How to block access to directory listing and certain pages in asp.net?

I have several issues with how I am configuring my web.config due to my inexperience.
I want to set a page, login.aspx, as my default page. If the user logs in successfully, he will be redirected to a page in a protected folder /Protect/Edit.aspx . All users can still access a page in root folder named Show.aspx, will be redirected to login.aspx if they try to click or write the path to Edit.aspx, and I am unsure on how to do this.
My other problem is that if I write just localhost it shows me the directory listing, and I want to avoid this, but setting
still gives me the directory listing. What am I doing wrong?
You need to implement forms authentification for your app. Here is a tutorial
Seems like you don't have a default.aspx page, so IIS couldn't find any document to load first. You can either configure IIS to use Show.aspx as a default page, or just add default .aspx.

Unable to open the landing page on server

I am using asp.net 3.5.
My Hosting provider has given me a folder to upload my publish application, now when I am entering www.example.com, I am not getting my homepage, but when I am running the same application on my local I am getting home page.
Please let me know what I have to modify so that when usertype www.example.com it will open like www.example.com/homepage.aspx
Please help.
Thanks in advance
The standard default page name for ASP.Net is Default.aspx, not homepage.aspx.
Rename the landing page to Default.aspx
Or, create a Default.aspx page and have it do a redirect homepage.aspx
Or, see if your hosting provider will configure your site to serve up homepage.aspx as the default page.
Could it be a domain name issue?
Locally you probably use http://localhost/homepage.aspx?
Has the domain name "www.mysite.com" been configured/activated for you by your provider?

Resources