943,502 Members | Top Members by Rank

Feb 18th, 2005
0

Where have I gone wrong?

Expand Post »
Hey whats up guys.. maybe you all can help me.. cause I am lost.. maybe im doing something wrong maybe im not doing something at all.. or maybe im just doing to much of something...

Anyway to make a long story short my company would like to host thier own site inhouse to reduce some costs, as well as offer clients the ability to host there sites through us as an incentive to try an close deals with possible clients.

We are using apache 2.0.48, on an NT based machine. All works accordingly and well up til we try to point the domain to the server.

Now the problem I am having with that is our registar.. we need nameservers, and Im not quite sure how to set those up with apache. If someone could point me to some documentation a module what ever that does that that would be great..

Now my big question is, we went out got some domains that resolve via IP for testing.. all the domains in themselevs reslove fine. But when I put them all into their own vhost container the top one super seeds all the domains. and will send all requests to the server to that specific location within it.

My comapany has it set up like this in the root folder of the server for hosting (htdocs)

.
..
[Clients]
[Client-1.com]
[Client-2.net]
[Client-3.org]
[Company]
[Projects]
index.html
about.html
contact.html

we have our domain, and 3 client domains... my company wants the directory set up like that example above for orginational reasons.. root directory containing our main site, client directory hosting client sites etc.. can anyone give me an example of what to do right in a senerio as I am talkin about?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
soulz is offline Offline
4 posts
since Feb 2005
Feb 18th, 2005
0

Re: Where have I gone wrong?

Well I will try to seperate your issues out for you.

First, as far as nameservers go, you will need to setup bind/MS DNS, or some kind of DNS Server, these are not done through apache, most people perfer to use a provider for this such as zoneedit.com or some popular DNS Service for reliability. Generally speaking it is recommended that you have 2 different servers for DNS and that they be on different class C's in case there are any routing or power issues.


Your next issue is that the virtual hosting, the top domain will be able to be viewable via ip address, however via the domain name if you are not able to see each domain in their respective site, you will need to make sure that there is a 'NameVirtualHost' directive above the virtual host configuration.

ie.

NameVirtualHost 192.0.0.1

<VirtualHost 192.0.0.1>
Servername blah.com
Serveralias www.blah.com
......
</VirtualHost>

<VirtualHost 192.0.0.1>
Servername domain.com
Serveralias www.domain.com
......
</VirtualHost>

Be sure to restart apache after you add in this directive as it requires a restart to recognize the changes.
Moderator
Staff Writer
Reputation Points: 154
Solved Threads: 18
Linux Reject
blud is offline Offline
570 posts
since Apr 2004
Feb 19th, 2005
0

Re: Where have I gone wrong?

beats me...good luck with it though sry i cant help
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ignite is offline Offline
12 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Servers and Apache Forum Timeline: how to enable index.shtml instead of index.html.
Next Thread in Linux Servers and Apache Forum Timeline: advanced apache setup options..





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC