hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Dedicated Server : How to point www.yyy.com to www.xxx.com/~zzz ?
Reply

Dedicated Server Current and past experiences with dedicated server providers, bandwidth, and server performance. Review managed and unmanaged dedicated web servers, discuss both Windows and Unix dedicated server solutions, and discuss dedicated hosting providers. If your service is unavailable, please click here.
Forum Jump

How to point www.yyy.com to www.xxx.com/~zzz ?

Reply Post New Thread In Dedicated Server Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 06-27-2001, 11:35 PM
raylin raylin is offline
WHT Addict
 
Join Date: Sep 2000
Location: Asia
Posts: 105

How to point www.yyy.com to www.xxx.com/~zzz ?


Can I do that on a Cobalt 4i ?
If yes, what are the steps to do this ?
Should I add cname for www.yyy.com to www.xxx.com and edit httpd.conf for www.xxx.com ?

Thanks a lot for your help,

Ray

Reply With Quote


Sponsored Links
  #2  
Old 06-28-2001, 12:58 AM
Chicken Chicken is offline
Web Hosting Master
 
Join Date: Jun 2000
Location: Southern California
Posts: 12,121
Well, you could try a symbolic link, though you might encounter cgi wrap errors (a permissions problem where the user does not have permission to run a script in a certain directory), which should be able to be fixed. Something like:

ln -s /home/sites/www.xxx.com/users/zzz/web /home/sites/www.yyy.com/web

One thing I'd do is use the site#'s instead of www.xxx.com and www.yyy.com above. If you do encounter cgi wrap errors, this might take care of that, though I am not 100% certain:

cd /home/sites/www.yyy.com
chown zzz.home web/

Again, I'd replace www.yyy.com with the site# and again, I'm not entirely sure about this one. Can someone else take a look at this and let me know if this is correct or if I goofed somewhere?

__________________
HostHideout.com - Where professionals discuss web hosting.

• Chicken

Reply With Quote
  #3  
Old 06-28-2001, 01:23 AM
raylin raylin is offline
WHT Addict
 
Join Date: Sep 2000
Location: Asia
Posts: 105
Thanks, Chicken.

From your suggestion, I think I have to :

1. add virtual site for www.yyy.com
2. add CNAME to point www.yyy.com to www.xxx.com
3. create a link from /home/sites/site#_of_yyy/web to
/home/sites/site#_of_xxx/users/web


Is there any way that I don't need to add a virtual site for www.yyy.com ?

Reply With Quote
Sponsored Links
  #4  
Old 06-28-2001, 01:50 AM
Chicken Chicken is offline
Web Hosting Master
 
Join Date: Jun 2000
Location: Southern California
Posts: 12,121
Ooops sorry, forgot to mention about that stuff. For this, forget about CNAME. Yes, you'd have to create the virtual site www.yyy.com and then you are basically mapping one folder to another.

-You could also use a service like http://www.mydomain.com and point the domain to a path (this service might be available from your registrar as well).

__________________
HostHideout.com - Where professionals discuss web hosting.

• Chicken

Reply With Quote
  #5  
Old 06-28-2001, 09:22 AM
raylin raylin is offline
WHT Addict
 
Join Date: Sep 2000
Location: Asia
Posts: 105
Thumbs up It WORKs!

Really appreciated, Chicken.


Reply With Quote
  #6  
Old 06-28-2001, 12:29 PM
Chicken Chicken is offline
Web Hosting Master
 
Join Date: Jun 2000
Location: Southern California
Posts: 12,121
Good...

Question: have you tried to upload a script (user zzz) and encountered any errors with the cgi-wrap? If so, did you try setting permissions ala:

cd /home/sites/www.yyy.com
chown zzz.home web/

???

__________________
HostHideout.com - Where professionals discuss web hosting.

• Chicken

Reply With Quote
  #7  
Old 06-29-2001, 08:06 AM
raylin raylin is offline
WHT Addict
 
Join Date: Sep 2000
Location: Asia
Posts: 105
Quote:
Originally posted by Chicken
Good...

Question: have you tried to upload a script (user zzz) and encountered any errors with the cgi-wrap? If so, did you try setting permissions ala:

cd /home/sites/www.yyy.com
chown zzz.home web/

???
I did not test if cgi scripts work or not.

Before I "chown zzz.home web/", it did fail to browse www.yyy.com (no permission). But after chown everything goes very well.

I think "chown zzz.home web/" is the key step (I don't realy understand this thou), right ?

Reply With Quote
  #8  
Old 06-29-2001, 04:19 PM
addady addady is offline
Junior Guru Wannabe
 
Join Date: Dec 2000
Posts: 77
What abut the case www.xxx.com/~zzz is on other

What abut the case www.xxx.com/~zzz is on other
server lets say www.geocitys.com/~balabla

How can I do it ?

Reply With Quote
  #9  
Old 06-29-2001, 05:46 PM
Chicken Chicken is offline
Web Hosting Master
 
Join Date: Jun 2000
Location: Southern California
Posts: 12,121
Path forwarding, use a free service like http://www.mydomain.com

I sent you an email raylin, but didn't check if you listed a valid one or not.

__________________
HostHideout.com - Where professionals discuss web hosting.

• Chicken

Reply With Quote
  #10  
Old 06-30-2001, 06:08 AM
kunal kunal is offline
Web Hosting Master
 
Join Date: Aug 2000
Posts: 2,750
or you could just use mod_rewrite?

__________________
The Php Support Desk
http://www.phpsupportdesk.com
Custom programming - kunal @ e-phoria.com
http://www.pingzine.com - Ping!Zine. the FREE, FRESH and EXCITING Web Hosting Magazine...

Reply With Quote
  #11  
Old 06-30-2001, 02:10 PM
Chicken Chicken is offline
Web Hosting Master
 
Join Date: Jun 2000
Location: Southern California
Posts: 12,121
I hope you are asking me, heh. I dunno, I've had problems with the RaQ4s rewriting thigs and basically ignoring what I put. I'm sure I didn't do something right but I never figured out how to get it so it worked. I scoured the apache pages and tried just about everything I could find, but someone else with a better understanding of it might be able to get it right.

__________________
HostHideout.com - Where professionals discuss web hosting.

• Chicken

Reply With Quote
  #12  
Old 07-01-2001, 01:53 AM
kunal kunal is offline
Web Hosting Master
 
Join Date: Aug 2000
Posts: 2,750
well ive been trying to use this code to do it...

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain-they-come-from\.com [NC]
RewriteCond %{HTTP_HOST} ^domain-they-come-from\.com [NC]
RewriteRule ^(.*) www\.main-domain-name\.com\/form\.php\?{HTTP_HOST} [R,L]


found the bug and fixed it

__________________
The Php Support Desk
http://www.phpsupportdesk.com
Custom programming - kunal @ e-phoria.com
http://www.pingzine.com - Ping!Zine. the FREE, FRESH and EXCITING Web Hosting Magazine...


Last edited by kunal; 07-02-2001 at 04:49 AM.
Reply With Quote
  #13  
Old 07-01-2001, 05:22 AM
raylin raylin is offline
WHT Addict
 
Join Date: Sep 2000
Location: Asia
Posts: 105
Chicken,

Quote:
Originally posted by Chicken
I sent you an email raylin, but didn't check if you listed a valid one or not.
Yes, I got it. Sorry for my late reply.

Quote:
Originally posted by kunal

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain-they-come-from\.com [NC]RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} ^domain-they-come-from\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) www\.main-domain-name\.com\/form\.php\?{HTTP_HOST} [R,L]
Wow. I have to do homework to study these strange directives. Can anybody suggest where to start ? (Good online tutorial)

Reply With Quote
  #14  
Old 07-01-2001, 10:41 AM
iplexx iplexx is offline
WHT Addict
 
Join Date: Feb 2001
Location: Austria
Posts: 147
Quote:
Originally posted by raylin
Wow. I have to do homework to study these strange directives. Can anybody suggest where to start ? (Good online tutorial)
mod_rewrite docs
http://httpd.apache.org/docs/mod/mod_rewrite.html

url rewriting guide
http://httpd.apache.org/docs/misc/rewriteguide.html

good luck, you'll need it

__________________
Martin/Iplexx
http://www.iplexx.at/

Reply With Quote
  #15  
Old 07-01-2001, 11:38 AM
raylin raylin is offline
WHT Addict
 
Join Date: Sep 2000
Location: Asia
Posts: 105
Thumbs up Thanks iplexx

Quote:
Originally posted by iplexx


mod_rewrite docs
http://httpd.apache.org/docs/mod/mod_rewrite.html

url rewriting guide
http://httpd.apache.org/docs/misc/rewriteguide.html

good luck, you'll need it
I add them into my bookmark list.
Thanks a lot,

Ray

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Fortinet to Acquire Application Delivery Firm Coyote Point Web Hosting News 2013-03-25 07:46:05
Colocation Firm FIBERTOWN Adds New Telecom Carriers to Houston Data Center Web Hosting News 2012-01-23 17:25:36
Perseus Telecom Buys Data Center Hub 60 Hudson Street in NYC Web Hosting News 2012-01-11 11:24:43
Recovery Point Extends Private Fiber Network by Adding Baltimore POP Web Hosting News 2011-10-20 15:38:31
Web Host ControlCircle to Resell Check Point Security Products Web Hosting News 2011-06-07 19:45:54


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?