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: 1534
Discussions: 200,903, Posts: 2,378,879, Members: 246,272
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? (2799)
Is the PSU I received dead? (10)
Install XP pro and a Vista laptop ?.. (8)
California Passes Anti-Flat-HDTV Le.. (38)
A good PSU? (10)
Fox uses old news clips to inflate .. (33)
Foreign voltage (5)
New Computer wont recognize XP disc (7)
HIS HD5770 graphic card question (12)
Dept. of HS: NSA 'Helped' Develop V.. (12)
Print spooler problem (5)
EVGA 9800 gtx help with finding a g.. (6)
Ideal cheap graph card for PC-Gamin.. (13)
Mysterious Boot manager (9)
Recent Discussions
HIS HD5770 graphic card question (12)
Install XP pro and a Vista laptop ?? (8)
Need hard disk drivers (3)
Cloning old drive to new drive (6)
Asus P4G8X Mobo (0)
Amptron monitor G17FP-Black (0)
windows vista security holes (0)
EVGA 9800 gtx help with finding a goo.. (6)
A good PSU? (10)
Is the PSU I received dead? (10)
Ideal cheap graph card for PC-Gaming? (13)
HP Pavillion Laptop ze4220 won't turn.. (7)
Dept. of HS: NSA 'Helped' Develop Vis.. (12)
Foreign voltage (5)
Convert 5 pin Keyboard to USB (11)
Print spooler problem (5)
hybernate option (2)
Steam ID's, Gamertags etc... (1)
New Computer wont recognize XP disc (7)
World's largest Monopoly Game using G.. (328)
Modern Warfare 2: Who Bought It? (60)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (28)
blender help (2)
Hard drive freezes boot (1)
Mysterious Boot manager (9)


All times are GMT -4. The time now is 02:40 AM.
TechIMO Copyright 2009 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