Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

virtual hosting mishaps

Status
Not open for further replies.

kenhead2002

Programmer
Jun 3, 2002
108
US
alright I have ben working with wulle to try and get my virtual hosts set up corectly. We went through many many steps to get it working (see past thread under kenhead2002 for details) I still cannot get the virtual host to server my second site. It is automatically taking the first of the 2 as the default and leaves out the second site completely. If anyone can help me with this problem I would greatly appreciate it. I do greatly appreciate the advice i have recieved from wulle and hope to have him help me out in the very near future.
thanks in advance
heres a link to the original thread so you can see what has been done
thread65-285585
 
I see both pages appearing the same, with graphics blanked out. One has source code with Heather Leone graphics, the other doesn't.

I think I see the mistake. Your server root is "H:/Program Files/Apache Group/Apache/htdocs", while your two domains are at "H:/ and "H:/ correct? In your virtual hosts section, you call out

DocumentRoot / and
DocumentRoot /
I think perhaps this directs your domains to subdirectories under "H:/Program Files/Apache Group/Apache/htdocs/", the server root. Could be I'm wrong. But try changing the virtual hosts to call out the explicit paths:

DocumentRoot "H:/ and
DocumentRoot "H:/
Restart Apache and see if that works. Hope this helps. Wullie is one of the best and got me up and running with 3 domains on my server. Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
Hi mate,

I see both of your domains correctly..

One has the title of

heather leone online portfolio

and the other has the title of

index.

Your domains are working correctly!!

What is the actuall problem here? Are you trying to click on a link on these pages?

If so then the problem is that you have specified an IP address as your links, so instead of the certain domain being called, the first one is always called...

Hope this helps Wullie

 
Wullie is right, as usual. You need to edit all of your hyperlinks to reflect the domain name, not the IP address. This is probably a leftover from your development stage, before you had domain names.... Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
hmmm I am extremely confused now. When I test the site site I can connect to both domain names- and the domain names are correctly linked to my IP adress and are functioning properly. The issue i am having is that both domains seem to be pulling from only one folder
h:/There are actually 2 completely different sites that I am hosting. and 2 seperate subdirectories under h:/www
1. crackerentertainment.com
2. hleonegraphics.com
The setup now is only pulling the page from the crackerentertainment.com directory and not the hleonegraphics.com directory.
But your saying they are both up??? when i test this i can only pull up the crackerentertainment site but it comes up under both domains. am I having a browser problem?
i have IE 6 on winxp pro
 
Hi mate,

The both sites are using frames.. ok??

The frames that you refrence are called as your IP address and not the domain name.

When Apache gets a request for server name that is unknown (In this case your IP) then the first Vhost is served.

In your case, the correct pages are being shown but the frames contained within them are being called from the first Vhost.

To test this properly, put a blank page in both directories and in each one enter the doman name of that site.

So for one put HEATHER and the other put CRACKER.

Now, clear your cache on your browser, call the sites one at a time and you should see the different text for each domain.

Hope this helps

Wullie

 
ok i emptied the folders crackerentertainment.com and hleonegraphics.com and created a new index.html file for each. one containing cracker one containing heather. The cracker file comes up but the heather does not. I am not using frames of any type in either of the 2 pages either.
 
Well, I see similar pages under both names, but they are actually different. YOu must have copied one page to make the other. One has the Heather Leone title on the top bar of the browser, the other just has an index title. You are succeeding in using 2 different domains, but the index pages are almost identical. Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
thats what i am saying. the domain names are right but it will only pull the images and html form the crackerentertainment folder. hence we get the same page for both domains. The hleonegraphics site is a completely different site with different images.
Both site were created with dreamweaver and have the format..
index.html
graphics.html ect ect.
I need to get the hleonegraphics.com site to pull the correct html and graphics from the hleonegraphics.com folder. please help!
 
i don't see any place to change framed forwardins within namezeros pages?
 
Hi mate,

You need to get rid of the framed forwarding..

What is happening with your domain is as follows:

1) You enter the domain in the address bar.
2) The request is made to NameZero for that domain.
3) NameZero sets up the page in frames.
4) The frame pointing to your server is using the IP address.
5) Apache sees the request for the IP and serves the first VHost.

To get round this you need to lose the frames altogether which will maybe mean moving to another DNS provider or doing it yourself.

There are ways to get round this but they are not a long term or even remotly effective solution.

Hope this helps Wullie

 
alright I am signed up for dns2go. Could you please tell me how to relink the two sitesthrough dns2go and back to my namezero domain name? Do I ned to register 2 seperate dns2go addresses for the 2 seperate sites?or is it just one to replace the ip? Please let me know as I am very new to all of this. I'd hate to come as far as we have and not be able to get the 2 sites up ya know. I really do appreciate all the help.
 
Hi mate,

You misunderstand...

I am saying to use dns2go INSTEAD of namezero. You could set up a dns2go domain for each of your Vhosts but that was exactly what I mean't earlier when I said:

There are ways to get round this but they are not a long term or even remotly effective solution.

Doing it this way is a very bad way to say the least, everytime that someone requested your page, they would connect to namezero, then dns2go and then your machine. This adds up especially when one service is running a bit slow.

The most effective way to do this is to transfer your domains over to the dns2go nameservers. Then dns2go would forward every request for your domains to Apache which would then direct the request to the appropriate domain.

This saves you from using framed forwarding, and also multiple connects to the servers just to reach your computer.

Hope this helps Wullie

 
so I would be stuck with a dns2go name instaead of the so it has to be left as I can't have that it's unprofessional. Are there other options as far as apache goes or is that it and I just picked the wrong domain serevice to start with? Would I be able to use the namezero names properly with windows server and iis? or am I going to run into the same isues once again. I'd hate to lose these domains though since the webpages and all other bussiness materials were designed around the names themselves.
let me know
 
If i switched i would lose the already registered and payed for names from namezero. I read through the whole page and found nothing saying that you could carry a name over from another pay domain site. So i may be able to create a new primary domain name without the dns2go but it will not be the crackerentertainment.com or hleonegraphics.com
sorry to frustrate you but your the only one who seems interested in helping
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top