Re: Upload settings for multiple domains in 'default.asp'

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



The instructions for default.asp are for a redirecting page--to account for multiple domains on the server using hosts. The ISP created subfolder on the main account for the new doamisn. Those folder would correspond to the FTP directories for those domins and websites.

FP can be used an editor for producing the web page. If FP Server extensions are installed in the server FP can also be uded for publishing and using other online features for the web apges. The web site is referred to as a frontpage web. However, if you use FP web, you should not use FTP because it can screw up the web ste.

For you question, if the websiteis for the domains are fontpage webs, he shoudl be open them as web directly. If cannot, they are not front page webs or he does not have permissions. For frontpage webs, he can also develop the web site on his machine and use frontpage to pulish it. Publshing does more than copying fiels to the site.

....PC



neilr wrote:

Hi,

I'm an experienced website designer but have NEVER used FrontPage. I've always used FTP, SCP to manage the files on the server. A friend who is not a professional website designer, but has always used FrontPage successfully to manage a special interests website has contacted me to see if I can help with a new problem.

His hosting is with 1and1 where he has managed his website for some considerable time using FrontPage - he seems to be competent with FP. Essentially he has just recently registered two new domains and hosted with 1and1 using his existing account.

His 1and1 account currently list his domains in his control panel:

OriginalDom.com    Webspace (/.)        Ready
NewDom1.com        Webspace (/upload1)    Ready
NewDom2.com            Webspace (/upload2)     Ready

PROBLEM:

The upload instructions provided by 1and1 advise him to create a 'default.asp' file and configure it according to his domains. The example they provide is as follows:

<%EnableSessionState=False
host = Request.ServerVariables("HTTP_HOST")
if host = "usa-test.com" or host = "www.usa-test.com" then
response.redirect("http://usa-test.com/usa-test/index.htm";)
elseif host = "tranquilhome.com" or host = "www.tranquilhome.com" then
response.redirect("http://tranquilhome.com/tranquilhome/index.htm";)
else
response.redirect("http://tranquilhome.com/error.htm";)
end if
%>

How does this map to FP server on his own PC?
I haven't seen what he has done yet but I imagine he has created two new folders under DOC_ROOT in his FP dev environment for each of the new domains (NewDom1 and NewDom2).


So, if I assign as follows:

if host = "NewDom1.com"
response.redirect("http://NewDom1.com/";)

Would that seem correct?

Also, why the additional folder (/usa-test/) in the 1and example:
response.redirect("http://usa-test.com/usa-test/index.htm";)

Not having touched FP before, as you can see, I'm more than a bit confused. I haven't visited the guy yet as he is a good drive away and I don't want to charge him more than expenses, so hopefully I can get it sorted for him in as short a time as possible, and in one trip.

Any advice and guidance much appreciated.

Neil






.



Relevant Pages

  • Re: Basic Authentication + IIS 5 + Windows 2000 + Frontpage 2002 = failure?
    ... > By this, I mean, usually, on the basic logon screen of a server, I see ... >>;) under the website in question, enabling only Basic authentication. ... and can use the local administrator account to successfully ...
    (microsoft.public.inetserver.iis.security)
  • Re: Basic Authentication + IIS 5 + Windows 2000 + Frontpage 2002 = failure?
    ... By this, I mean, usually, on the basic logon screen of a server, I see ... >;) under the website in question, enabling only Basic authentication. ... > - When testing with IE or FrontPage local to the webserver for a baseline ... From a website perspective, I ...
    (microsoft.public.inetserver.iis.security)
  • RE: Basic Authentication + IIS 5 + Windows 2000 + Frontpage 2002 = failure?
    ... ;) under the website in question, enabling only Basic authentication. ... IE (and FrontPage too, if I am not mistaken) will interperate the ... lets configure the server extensions on this VDIR....select the ... From a website perspective, I ...
    (microsoft.public.inetserver.iis.security)
  • Re: frontpage intranet migration website strategy with a twist
    ... decent experience with Frontpage and publishing to third party WWW ... I have a newly integrated Small Business Server 2003 and I'm ... trying to publish a website via FrontPage. ... Opening IIS and creating a new website using server ip address, ...
    (microsoft.public.frontpage.client)
  • re: Search form website
    ... I chose "the entire website" as my option. ... the info as long as it is on the server. ... >Microsoft Indexing service wasn't installed. ... >still be configured to use the FrontPage search engine. ...
    (microsoft.public.frontpage.programming)