Go to Post TIME is the one commodity you cannot buy more of. - Andy Brockway [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-08-2004, 21:26
Mike AA's Avatar
Mike AA Mike AA is offline
Programmer and Mentor
AKA: Mike Aalderink
FRC #3458 (Code Blue)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Holland, Mi
Posts: 698
Mike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to behold
Send a message via MSN to Mike AA
Dual sites on home server running apache?

Ok, I registered a URL for the new team we are getting started, the url hollandalternativehsfirstrobotics.us. Currently I just have it, once the name server finishes, it'll link to my personal site mike-site.us. I saw somewhere on here, on CD, a way to make the new link go directly to the directory where the team's site is, the site is mike-site.us/page1.html. Any help would be appretiated. I am running apache2 on win xp pro, on dual 2ghz, 80gHD runs 24/7 running 10+ days straight I think?

PM me or write here if you have a problem with it or have comments.

Thanks in advance

-Mike
  #2   Spotlight this post!  
Unread 19-08-2004, 21:46
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Dual sites on home server running apache?

What you need is the NameVirtualHost directive. It will let Apache answer requests for both sites at the same IP address by looking at the URL which the browser sent. That way you won't even have to redirect people to your other site.

P.S. Another Holland-area team? Sweet!
  #3   Spotlight this post!  
Unread 19-08-2004, 22:33
Venkatesh Venkatesh is offline
Registered User
FRC #0030
 
Join Date: Jan 2003
Rookie Year: 2002
Location: USA
Posts: 260
Venkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to behold
Re: Dual sites on home server running apache?

If you need any help with this at all, PM me. I have been running Apache on Windows 2000/XP since October 2002.

You can take a look at my httpd.conf file, which is written for one server to support 3 sites (endeavour.zapto.org, excrucio.zapto.org, studiosmaster.zapto.org). It is located here, http://endeavour.zapto.org/httpd.conf.txt. The virtual hosts section is at the end.

Also, that is some pretty substantial hardware firepower for running Apache. I have done a lot of performance testing with Apache for Windows and IIS 5.0. Barring heavy CGI/dynamic work, that server of yours will be able to handle an incredible load. On a Pentium 166mhz, 64MB ram, 4gb hard disk, I was able to handle 9 requests/sec under Apache 1.3.31, 414 requests/sec with Apache 2.0.50, and 434 with IIS 5.1, with a static, 1kb text page. Yes, that massive jump from Apache 1.3.31 to 2.0.50 is correct. The numbers here are averages of 8 trials, with the cache cleared between trials. I got that system to stay up for a maximum of 129 days, before lightning took out the power here.

If you need any help with Apache on Windows at all, PM me.
__________________
-- vs, me@acm.jhu.edu
Mentor, Team 1719, 2007
Team 30, 2002-2005
  #4   Spotlight this post!  
Unread 20-08-2004, 23:11
Mike AA's Avatar
Mike AA Mike AA is offline
Programmer and Mentor
AKA: Mike Aalderink
FRC #3458 (Code Blue)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Holland, Mi
Posts: 698
Mike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to behold
Send a message via MSN to Mike AA
Re: Dual sites on home server running apache?

Quote:
Originally Posted by Dave Flowerday
What you need is the NameVirtualHost directive. It will let Apache answer requests for both sites at the same IP address by looking at the URL which the browser sent. That way you won't even have to redirect people to your other site.

P.S. Another Holland-area team? Sweet!
Thanks, I beleive thats what i'm looking for. I'll be testing it in a minute to actually check it, just stopped by here to check for suggestions.

Yes, it is Another Holland-area team, basicly my family has been involved since I started back in '99 and we thought we would give another HS a chance, since they were left out of everything else.

Quote:
Originally Posted by Venkatesh
Also, that is some pretty substantial hardware firepower for running Apache. I have done a lot of performance testing with Apache for Windows and IIS 5.0. Barring heavy CGI/dynamic work, that server of yours will be able to handle an incredible load. On a Pentium 166mhz, 64MB ram, 4gb hard disk, I was able to handle 9 requests/sec under Apache 1.3.31, 414 requests/sec with Apache 2.0.50, and 434 with IIS 5.1, with a static, 1kb text page. Yes, that massive jump from Apache 1.3.31 to 2.0.50 is correct. The numbers here are averages of 8 trials, with the cache cleared between trials. I got that system to stay up for a maximum of 129 days, before lightning took out the power here.
I originally built the system to be used as a dial-up ISP, but after getting everything setup and finding a sDSL provider I found out the equipment to actually do it (the dial-up isp part)was a little too expensive for me. So instead I decided to put it to use with websites. This is also a computer which I store backups of music and videos. Between my 4 computers I have nearly 1/2 TB but plan to put an additional 1-2 on my server. I would kinda like to help as a backup for soap's files, err a mirror if I can get it setup with them. I would easily have the processor power, and after I upgrade my sDSL one step I'll have the bandwidth. I havent tested my server as to what it'll do on apache but i'm sure it would be fairly good.

Thanks for the info.
  #5   Spotlight this post!  
Unread 21-08-2004, 01:00
Mike AA's Avatar
Mike AA Mike AA is offline
Programmer and Mentor
AKA: Mike Aalderink
FRC #3458 (Code Blue)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Holland, Mi
Posts: 698
Mike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to behold
Send a message via MSN to Mike AA
Re: Dual sites on home server running apache?

ok, I've tried what Apache's website says and tried taking a copy of your config file, this is what I have and its not working
_____
NameVirtualHost 0.0.0.0

<virtualHost 0.0.0.0>
ServerName www.hollandalternativehsfirstrobotics.us
ServerAlias hollandalternativehsfirstrobotics.us *.hollandalternativehsfirstrobotics.us
DocumentRoot /halt/page1.html
</virtualHost>

_____

minus the horizontal lines. Any suggestions or help?
  #6   Spotlight this post!  
Unread 21-08-2004, 15:15
evulish's Avatar
evulish evulish is offline
1010100
AKA: Grant Harding
#0084 (WATTNESS (bot: Chuck))
Team Role: Alumni
 
Join Date: Jul 2002
Location: Towanda/Wysox, PA
Posts: 1,434
evulish is just really niceevulish is just really niceevulish is just really niceevulish is just really nice
Send a message via AIM to evulish
Re: Dual sites on home server running apache?

I have mine set up as follows:

Code:
NameVirtualHost *

<VirtualHost *>
ServerName www.mehh.net
DocumentRoot /web
</VirtualHost *>

<VirtualHost *>
ServerName amy.mehh.net
DocumentRoot /home/amy/public_html
</VirtualHost>
Which works just fine for me.
__________________
I'm a professional web developer. I'm good with PHP, Perl, Java/JSP, some RoR, XML, Javascript (AJAX as well), (x)HTML, CSS, etc.. Validated code is good; fully cross-browser code is better (you comply to your users and the software they use, not the other way around. Sorry!)
  #7   Spotlight this post!  
Unread 21-08-2004, 20:37
Matthew_H's Avatar
Matthew_H Matthew_H is offline
Ubergeek
#1028 (Ubergeeks)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Huntsville,AL
Posts: 105
Matthew_H will become famous soon enough
Send a message via AIM to Matthew_H Send a message via MSN to Matthew_H
Re: Dual sites on home server running apache?

Quote:
Originally Posted by evulish
I have mine set up as follows:

Code:
NameVirtualHost *

<VirtualHost *>
ServerName www.mehh.net
DocumentRoot /web
</VirtualHost *>

<VirtualHost *>
ServerName amy.mehh.net
DocumentRoot /home/amy/public_html
</VirtualHost>
Which works just fine for me.

It is important to use the * instead of 0.0.0.0. This allows apache to use the name instead of the IP address and since you don't have the ip address of 0.0.0.0 then that is why it is giving you some grief. You can PM if you have any problems. I had to fight with my apache directives a little until it worked just right.

Also in the ServerAlias section only have the *.hollandalternativehsfirstrobotics.us
__________________
Matthew

  #8   Spotlight this post!  
Unread 28-08-2004, 02:02
Mike AA's Avatar
Mike AA Mike AA is offline
Programmer and Mentor
AKA: Mike Aalderink
FRC #3458 (Code Blue)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Holland, Mi
Posts: 698
Mike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to behold
Send a message via MSN to Mike AA
Re: Dual sites on home server running apache?

ok, I finally got my linking and virtual hosting corrected. you can now visit my site at mike-site.us and the newest Holland, Mi team's website at
hollandalternativehsfirstrobotics.us
I will be getting another URL shorter because as you can probably tell its a long URL to type.

Now I need Ideas as to what to add to the site and pictures of things our team is getting together. We are working on funding and sponsorship and already have our very large room in the old Holland EE Fell.

Anyone have any ideas ?
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
E-Mail Server Venkatesh IT / Communications 15 27-06-2005 01:47


All times are GMT -5. The time now is 05:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi