Jump to content

domains for apache


Ninjakreborn

Recommended Posts

ok the domain names are
www.myprimerolatino.com
www.theprimerolatino.com
www.primerolatino.net
They are all pointed to the www.vpsland.com hosting domain name servers

After a lot of research, and a lot of work I finally came up with this

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot c:/wamp/www/primerolatino
ServerName www.myprimerolatino.com
</VirtualHost>

I also studied the difference between name based, and ip based virtual hosting, didn't pick up a lot but I understand the basics.
Now when I go to www.myprimerolatino.com it works, it visits that folder, and comes up wiht that page, but everything I try for the other 2 don't work like
<VirtualHost *:80>
DocumentRoot c:/wamp/www/primerolatino
ServerName www.theprimerolatino.com
</VirtualHost>

<VirtualHost *:80>
DocumentRoot c:/wamp/www/primerolatino
ServerName www.primerolatino.net
</VirtualHost>

Those come up and say the page cannot be found, what am I doing wrong on this part.
I have been doing additional research for awhile, and found some stuff about server alias, and some other things, I tried a few of those, but didn't really have a deep understanding of how it works, how do I know get those other 2 url's to show up.
Link to comment
Share on other sites

www.primerolatino.net or www.theprimerolatino.com are not correctly registered with your ISP or your Domain Seller.

From the command prompt - go:
ping www.websiteaddress.com

If ping doesn't return a response - then the website isn't registered correctly to begin with. Ask your ISP to correctly setup these two domains their side.

-steve
Link to comment
Share on other sites

I am not a server person, I went over every bit of online documentation I could find.  Tutorials, documentation, I am not a server expert, so I don't fully (barely), understand those things.  Since I am a programmer I pick them up after some time, that's how I got the first one working, but I am not getting any luck with the second one for some reason?
Link to comment
Share on other sites

Being a "server person" is of no concern here, really. Programmers read documentation, try it, and eventually (hopefully) understand it; so do "server people."

[url=http://httpd.apache.org/docs/2.2/vhosts/]Here[/url] are the docs for virtual hosts: start from scratch. The 2nd sentence immediately brings up a question to ask yourself: "Are my web sites IP-based or named-based?" See if you can determine that and follow their links.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.