home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Apache 2.0 Vhosts

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1572
Discussions: 200,508, Posts: 2,374,402, Members: 245,831
Old March 10th, 2003, 01:54 PM   Digg it!   #1 (permalink)
Moderator
 
phenious's Avatar
 
Join Date: Oct 2001
Location: Winter Park FL
Posts: 5,302
Send a message via AIM to phenious
Apache 2.0 Vhosts

Hello. I am trying to setup up Vhosts with my web server. I am running Apache 2.0 on WinXP. Here is the code I have so far in my server config file...

NameVirtualHost *

<VirtualHost *>
ServerName www.phenious.com
ServerAlias phenious.com
DocumentRoot F:/Website/phenious
</virtualHost>

<VirtualHost *>
ServerName www.autumn.phenious.com
ServerAlias autumn.phenious.com
DocumentRoot F:/Website/autumn
</virtualHost>

I have a dynamic service that points phenious.com to my current IP. I have the software update phenious.com and autumn.phenious.com every 2 min if there is a change. www.phenious.com works fine but I cant get www.autumn.phenious.com to work. do I need to take out some other code in the config to get it to pay attention to the vhost code? Thank you

-: phenious :-
__________________
phenious is offline   Reply With Quote
Old March 10th, 2003, 02:02 PM     #2 (permalink)
Junior Member
 
Join Date: Jan 2002
Location: Germany
Posts: 3
um...

You could also do the following:

First uncomment the following lines in your config file:

LoadModule vhost_alias_module modules/mod_vhost_alias.so

AddModule mod_vhost_alias.c

Then add this to your config file

<VirtualHost *:80>
UseCanonicalName off
VirtualDocumentRoot F:/Website/%0
</VirtualHost>

and rename the F:/Website/autumn to F:/Website/www.autumn.phenious.com so that anytime someone calls a sub domain whether it is autumn or anything else it goes to the folder that corresponds with that name this way you only need one sub domain request in your config file.

To make more subdomains just simply create a folder with the address you want as the folder name...

Last edited by [Interex] : March 10th, 2003 at 02:23 PM.
[Interex] is offline   Reply With Quote
Old March 10th, 2003, 02:17 PM     #3 (permalink)
Moderator
 
phenious's Avatar
 
Join Date: Oct 2001
Location: Winter Park FL
Posts: 5,302
Send a message via AIM to phenious
haha! thx for the help over MSN Messenger... all seems up now thanks

-: phenious :-
phenious is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (1635)
FT HOOD attack: 7 killed 12 injured (67)
Review My Build (6)
HELP!!! What do you think of this s.. (16)
Looking for a graphic card that wil.. (30)
Assosiations (21496)
My 1st pc build (40)
Aero in Vista (7)
PC Modern Warfare 2: it's much wors.. (12)
core i7 extreme 975, nvidia 9400gt (9)
How to Ship a PC (16)
Building my first computer (13)
[F@H SPAM 11/1/09]New month . . . n.. (33)
slaving laptop drive (7)
Recent Discussions
Review My Build (6)
windows 7 retail and rtm (1)
FAT32 to NTFS file system in Win2kpro (4)
Internet very slow since updating AVG.. (8)
Motherboards and my curse... (25)
HELP!!! What do you think of this sys.. (16)
New Processor, Monitor will not turn .. (2)
2009 Build (4)
My 1st pc build (40)
Freezing During Music/Movies (1)
Windows Experience Index is screwed u.. (2)
ext. sound card laptop to stereo syst.. (2)
Remote Desktop via SSH and error mess.. (2)
Help and Support disappeared from my .. (0)
[F@H SPAM 11/1/09]New month . . . new.. (33)
Basic applications needed for "r.. (1)
core i7 extreme 975, nvidia 9400gt (9)
hard drive problem (2)
Win7 TrustedInstaller Permissions (2)
Speed up Win 7 boot time a bit (1)
Hard Drive test program (2)
wireless westell versalink model 327w (1)
New build 10 second reboot cycle! Won.. (3)
New Linksys Routers (2)
sometime power/Amber light (0)


All times are GMT -4. The time now is 06:52 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28