This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > HELP : how to set up 2 sites on 1 server ???





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author HELP : how to set up 2 sites on 1 server ???
aerolex

2004-08-23, 11:14 pm

REGARDS TO ALL
:::::::::::::::::::::::::::::::::::

many thanks in advance to any who can offer help

:::::::::::
:::::::::::

i'm quite new to the world of dreamweaver, and as such i have been unable to
properly set up my 2 sites.

the situation is this :

I have 2 SITES of which i have the DNS set to point towards ONE ftp server.

I am able to place one of the sites LIVE on the WEB .

but no matter how i configure the folder heirarchy
i cannot view the second site online.
I get the SPECIFIED URL CANNOT BE FOUND error.

i have 2 FTP's set up instead of dreamweaver SITES .
one site has a root host directory of PUBLIC_HTML . this site is live .
the second site i have placed inside PUBLIC_HTML/COMMONALMS/PUBLIC_HTML

ive made PUBLIC_HTML/COMMONALMS/PUBLIC_HTML the HOST directory for the 2nd
site.

no matter what i've tried i cannot get both sites LIVE online.


please offer any pertinent advice as to how i should configure the files and
site structures
in order to have 2 seperate sites hosted on one ftp server???????????????????

aerolex.com
commonalms.com
:::::::::::::::::::::::::::::::::


many thanks in advance

aerosyn.lex mestrovic

aerosyn@hotmail.com


Dog

2004-08-26, 12:18 pm

you need to put each site in a seperate subfolder then in the root put an
index.asp or default.asp page with the following code :

<%@LANGUAGE="VBSCRIPT"%>
<%
sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
if InStr(sname,"SITE1") <> 0 then
response.redirect "site1"
elseif InStr(sname,"SITE2") <> 0 then
response.redirect "site2"
end if
%>

where the name in capitals is the URL and the name in lower case is the
folder name.

note the URL must be in capital letters.

hope that helps

dog


"aerolex" <webforumsuser@macromedia.com> wrote in message
news:cgdv55$8a$1@forums.macromedia.com...
> REGARDS TO ALL
> :::::::::::::::::::::::::::::::::::
>
> many thanks in advance to any who can offer help
>
> :::::::::::
> :::::::::::
>
> i'm quite new to the world of dreamweaver, and as such i have been unable

to
> properly set up my 2 sites.
>
> the situation is this :
>
> I have 2 SITES of which i have the DNS set to point towards ONE ftp

server.
>
> I am able to place one of the sites LIVE on the WEB .
>
> but no matter how i configure the folder heirarchy
> i cannot view the second site online.
> I get the SPECIFIED URL CANNOT BE FOUND error.
>
> i have 2 FTP's set up instead of dreamweaver SITES .
> one site has a root host directory of PUBLIC_HTML . this site is live .
> the second site i have placed inside PUBLIC_HTML/COMMONALMS/PUBLIC_HTML
>
> ive made PUBLIC_HTML/COMMONALMS/PUBLIC_HTML the HOST directory for the

2nd
> site.
>
> no matter what i've tried i cannot get both sites LIVE online.
>
>
> please offer any pertinent advice as to how i should configure the files

and
> site structures
> in order to have 2 seperate sites hosted on one ftp

server???????????????????
>
> aerolex.com
> commonalms.com
> :::::::::::::::::::::::::::::::::
>
>
> many thanks in advance
>
> aerosyn.lex mestrovic
>
> aerosyn@hotmail.com
>
>



Murray *TMM*

2004-08-26, 12:18 pm

Hmm - I wonder how SE's would like that.... It may work!

You'd have to make sure to use ONLY document relative links in the
respective site, or perhaps a <base> tag though, right?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Dog" <dog@XXXXmicrosoft.com> wrote in message
news:cgf91j$7hp$1@forums.macromedia.com...
> you need to put each site in a seperate subfolder then in the root put an
> index.asp or default.asp page with the following code :
>
> <%@LANGUAGE="VBSCRIPT"%>
> <%
> sname = Request.ServerVariables("SERVER_NAME")
> sname = ucase(sname)
> if InStr(sname,"SITE1") <> 0 then
> response.redirect "site1"
> elseif InStr(sname,"SITE2") <> 0 then
> response.redirect "site2"
> end if
> %>
>
> where the name in capitals is the URL and the name in lower case is the
> folder name.
>
> note the URL must be in capital letters.
>
> hope that helps
>
> dog
>
>
> "aerolex" <webforumsuser@macromedia.com> wrote in message
> news:cgdv55$8a$1@forums.macromedia.com...
> to
> server.
> 2nd
> and
> server???????????????????
>
>



Dan Vendel *GOF*

2004-08-26, 12:18 pm

aerolex wrote:


> I have 2 SITES of which i have the DNS set to point towards ONE ftp server.


The number of ftp-servers is pretty irrelevant from the user's point of
view. You need to have the domains pointing to two different folders,
and you *must* do this in co-operation with your host. If they accept
the arrangement and can set up two nameservers, you can fix this in
co-operation with them.

The, you just set up DW with two sites pointing to the two different
folders on the same ftp-server.

--
Dan Vendel - *GOF*
Contact: http://www.proformica.com/en/contact.shtml
Formmail tutorial: http://www.proformica.com/en/formmail_tutorial.shtml
Nested tables: http://www.proformica.com/en/nested_table_demo.shtml
SEO: http://www.proformica.com/en/search...imization.shtml
SE Utility: http://www.proformica.com/en/advanced_web_ranking.shtml
Search Dreamweaver newsgroup: http://www.proformica.com/google.html
aerolex

2004-08-26, 12:20 pm

MANY
MANY
MANY THANKS

TO ALL WHO ANSWERED WITH ADVICE .... HOLLA
Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews