Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

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 Dev Shed Forums Sponsor:
  #1  
Old April 2nd, 2000, 12:46 AM
c1zorro c1zorro is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 1999
Posts: 3 c1zorro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I want to configure a subdomain in my server..like http://user.domain.com
It should point to another folder htdocs/users instead of htdocs.
I have try <virtualhost> in my httpd.cong file but it doesnt work, i heard something about CNAME. Is cname what it needs to have changes? what is and where is that cname?

Can somebody help me with this?

Reply With Quote
  #2  
Old April 21st, 2000, 09:25 AM
brian brian is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 1999
Location: Chalfont
Posts: 9 brian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to brian
I would like to do the same thing on my server and have not been able to figure out how to do it. Could someone please help us out? Thanks!

Reply With Quote
  #3  
Old October 21st, 2000, 10:53 PM
bakassi bakassi is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 19 bakassi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am trying to do the same thing. Could somebody please help?

Thanks in advance,

Bakassi.

Reply With Quote
  #4  
Old October 22nd, 2000, 06:13 AM
#6 #6 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Melbourne, Victoria, Australia
Posts: 104 #6 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to #6
I have done it many times (successfully) using the example config that comes near the end of httpd.conf.

example (works for me anyway )

<VirtualHost sub.domain.com>
ServerAdmin webmaster@domain.com
DocumentRoot /usr/www/sub.domain.com/
ServerName sub.domain.com
ErrorLog /usr/local/apache/logs/sub.domain.com_error_log
</VirtualHost>

And vhola, it works for me.

Reply With Quote
  #5  
Old November 1st, 2000, 12:15 AM
Frank Frank is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 6 Frank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
One way, I have done this is to create a new virtual host directive.

For example,
<VirtualHost 172.5.43.23>
ServerName sub.domain.net
DocumentRoot /home/siteuser/public_html/
</VirtualHost>

Want to forward it to another domain? No problem...

<VirtualHost 172.5.43.23>
ServerName sub.domain.net
Redirect / http://www.otherdomain.com
</VirtualHost>

Best regards,
Frank

Reply With Quote
  #6  
Old November 1st, 2000, 03:28 PM
c1zorro c1zorro is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 1999
Posts: 3 c1zorro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks four your help, the <virtualhost> is working perfect, but one thing i cant do is to give @otherdomains.com mail to people.
Anyone can help me with this.

Regards.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > subdomain conf..


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 2 hosted by Hostway
Stay green...Green IT