Apache server or website hosting

  • mtg131g
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jun 18, 2005
  • Posts: 238
  • Status: Offline

Post April 25th, 2007, 3:26 pm

I am running an apache server at my house and I want to have several domains pointing to my server but they are to point to different infromation.

I thought that if website A is abc123.com and it points to folder ggg that is in the hotdocs on my server. website B is xyz123.com points to forlder aaa. but what happens is that when xyz123.com is added to point to my server it defalts to the normal index.html on my server and not to forlder aaa like it is suppose to do.

how can i fix this on my server. I need to host multiple sites and multiple domains on my server.

mtg
Helping people expand and explode their MLM Home-Based Businesses
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 25th, 2007, 3:26 pm

  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post April 25th, 2007, 5:27 pm

I don't know if you can do that with only one IP address unless there is a way to route it through a second NIC.
How do you know when a politician is lying? His mouth is moving.
  • mtg131g
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jun 18, 2005
  • Posts: 238
  • Status: Offline

Post April 25th, 2007, 5:34 pm

what if I ran another apache server on the computer that would not be in the same directory would that work?
Helping people expand and explode their MLM Home-Based Businesses
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post April 25th, 2007, 5:39 pm

Is that machine behind a router or is it connected directly to the modem?
How do you know when a politician is lying? His mouth is moving.
  • mtg131g
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jun 18, 2005
  • Posts: 238
  • Status: Offline

Post April 25th, 2007, 9:22 pm

well it was behind a router but I keep loosing the ports on the router so i have connected it to the cable modem directly for now. I would like it eventually to be behind the router if all possible.

mtg
Helping people expand and explode their MLM Home-Based Businesses
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post April 26th, 2007, 5:00 pm

My guess is that the only way you can do it with a single IP address is to have 2 NICs in the PC and put it behind a router with some type of route table to route it through the proper NIC. Both NICs would have to have static IP address. Look at the router documentation.
How do you know when a politician is lying? His mouth is moving.
  • mtg131g
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jun 18, 2005
  • Posts: 238
  • Status: Offline

Post April 26th, 2007, 5:22 pm

okay i am not that far in my programming skills yet and i am planning on taking some courses but how would one go about doing that? I would need a second network card in my computer and then hook that up to a new router since mine can't update the firm ware and then how do I make a table?

Thanks for your help so far. I am just starting to do the programming and networking and database classes this summer. I have been in the artistic side of computers for a long time.

mtg
Helping people expand and explode their MLM Home-Based Businesses
  • Casey
  • Graduate
  • Graduate
  • User avatar
  • Joined: Jun 09, 2005
  • Posts: 124
  • Loc: Iowa
  • Status: Offline

Post April 26th, 2007, 5:32 pm

Multiple separate domains on a single server? You need to set up virtual hosts.

Do a google search for virtual host apache and you'll probably find all the info you need.
  • mtg131g
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jun 18, 2005
  • Posts: 238
  • Status: Offline

Post April 26th, 2007, 9:17 pm

okay i did a search for the virtual domain apache server and I have tried to read their articles and I am still having problems with it with is code

NameVirtualHost *

<VirtualHost *>
ServerName mtgmarketing.biz
DocumentRoot C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\powercall
</VirtualHost>

<VirtualHost *>
ServerName http://www.abc4mlm.com
DocumentRoot C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\power_call
</VirtualHost>
can you please give me advise on what i am doing wrong?

mtg
Helping people expand and explode their MLM Home-Based Businesses

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 29 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.