
06-27-2001, 11:35 PM
|
|
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
|

06-28-2001, 12:58 AM
|
|
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
|

06-28-2001, 01:23 AM
|
|
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 ?
|

06-28-2001, 01:50 AM
|
|
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
|

06-28-2001, 09:22 AM
|
|
WHT Addict
|
|
Join Date: Sep 2000
Location: Asia
Posts: 105
|
|
It WORKs!
|

06-28-2001, 12:29 PM
|
|
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
|

06-29-2001, 08:06 AM
|
|
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 ?
|

06-29-2001, 04:19 PM
|
|
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 ?
|

06-29-2001, 05:46 PM
|
|
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
|

06-30-2001, 06:08 AM
|
|
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...
|

06-30-2001, 02:10 PM
|
|
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
|

07-01-2001, 01:53 AM
|
|
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.
|

07-01-2001, 05:22 AM
|
|
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)
|

07-01-2001, 11:38 AM
|
|
WHT Addict
|
|
Join Date: Sep 2000
Location: Asia
Posts: 105
|
|
Thanks iplexx
I add them into my bookmark list.
Thanks a lot,
Ray
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| 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
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|