Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old October 1st, 2004, 01:52 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Virtual Hosts With Apache

I am just wondering how to make seperate virtual hosts with apache. I am sorry if this is listed on the site somewhere else.

Reply With Quote
  #2  
Old October 1st, 2004, 04:47 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Virtual Hosts With Apache

See section 3 of the httpd.conf file.


NameVirtualHost *:80

<VirtualHost *>
ServerName www.example.com
DocumentRoot /www/web/example
</VirtualHost>

<VirtualHost *>
ServerName www.virtual.com
DocumentRoot /www/web/virtual
</VirtualHost>

Reply With Quote
  #3  
Old October 2nd, 2004, 12:07 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Virtual Hosts With Apache

thanks, simpiler than i thought

Reply With Quote
  #4  
Old October 2nd, 2004, 12:49 AM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Virtual Hosts With Apache

I forgot.. there's also a tutorial written by PostalCow in the tutorial section! www.codewalkers.com/tutorials/23/1.html.

-Tim

Reply With Quote
  #5  
Old October 2nd, 2004, 11:03 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Virtual Hosts With Apache

ok one more thing, how do you do subdomains?

Reply With Quote
  #6  
Old October 3rd, 2004, 01:20 AM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: Virtual Hosts With Apache

With another virtual host entry.

Reply With Quote
  #7  
Old October 4th, 2004, 01:39 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Virtual Hosts With Apache

no I meant like test.google.com or can you do subdomains like that with a virtual host?

Reply With Quote
  #8  
Old October 4th, 2004, 04:09 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Virtual Hosts With Apache

If they're pointing to the same machine, you'll have to first set up virtual hosts

<VirtualHost *>
ServerName www.example.com
ServerAlias example.com
DocumentRoot /www/web/example
</VirtualHost>

<VirtualHost *>
ServerName sub.example.com
DocumentRoot /www/web/sub
</VirtualHost>

and then set up A Name records for your DNS

-Tim

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > Virtual Hosts With Apache


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT