#1 (permalink)  
Old 02-07-2002, 08:46 PM
Registered User
 
Join Date: Aug 2001
Posts: 111
Diatone
Redirecting a domain to a subdir

Can someone tell me how to do the following? WITHOUT having to add the pointed domain as a new account on the server, then redirecting it through htaccess or other miscellaneous means..

I want the domain name to point to a specific directory within
the public_html folder. Not the main public_html folder itself..

I want to know how to point a domain, lets call it, www.abc.com
into an already existing account called www.diatone.net. But
I want www.abc.com to not direct to www.diatone.net, but
www.diatone.net/some/other/dir

Thanks so much.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-07-2002, 09:05 PM
Registered User
 
Join Date: Aug 2001
Location: Fremont CA
Posts: 537
AlaskanWolf is on a distinguished road
create a dns zone with default ip --- domain2.com

add a virtual entry in the httpd.conf file to point the domain2.com to the subdirectory

anyone that goes to domain2.com will then see domain2.com in their address bar and properties etc...
__________________
Fast Colocation Services
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-07-2002, 09:07 PM
Registered User
 
Join Date: Aug 2001
Posts: 111
Diatone
Sorry to be stupid. But.. How. What do I need to write in my httpd.conf specifically? Also, in WHM, I alter the dns zone for the existing domain? Or create a new one? Thanks for the help..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-08-2002, 02:40 PM
Registered User
 
Join Date: Sep 2001
Posts: 187
H2Hosting.com
1) create subdomain via CPANEL
2) Park new domain on top of subdomain
3) If you want to have mail redirection for domain pinters:

a) create file &domain.com& (:* main_user@maindomain.com) in /etc/valiases
b) add new domain to /etc/localdomains
c) add (new_domain.com :main_user_name) to /etc/userdomains
d) send test mail to new domain
__________________
Alex Andreyev,
http://www.WHost.INFO - NEW web hosting directory.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-08-2002, 03:16 PM
bdraco
Guest
 
Posts: n/a
Is there a feature req open for this yet ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-08-2002, 09:08 PM
Advanced cPanel/WHM User
Advanced cPanel/WHM User
 
Join Date: Nov 2001
Location: Dana Point, California
Posts: 660
shaun is on a distinguished road
Nick, Yep, i put in a request for Virtual Hosts the begging or last week cant remember.

http://web.cpanel.net/bugzilla/show_bug.cgi?id=242
__________________
Shaun Reitan
www.NDCHost.com
www.cPlicensing.net <- External cPanel Licensing
www.ProVPS.com <-- Xen Virtual Private Servers w/ cPanel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-08-2002, 11:10 PM
Registered User
 
Join Date: Aug 2001
Posts: 68
Kylecool
Yea, good idea!

-Kyle
__________________
-Kyle Reilly
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-09-2002, 01:28 AM
Registered User
 
Join Date: Aug 2001
Posts: 81
Brian Farkas
I entered one for this also- well, added on to an existing one, anyway:

http://web.cpanel.net/bugzilla/show_bug.cgi?id=47

Hopefully this counts, since they are related
__________________
InterSurge Internet
http://www.intersurge.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:55 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc