GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Virtual Domain Hosting???? (https://gfy.com/showthread.php?t=60620)

GFED 05-14-2002 11:16 PM

Virtual Domain Hosting????
 
Anybody know how to do this?

I've got a domain at domaina.com with an IP address xxx.xxx.xxx.xxx

I want domainb.com to point to domaina.com/domainb

I made an index.cgi but it doesn't display domainb.com in the location it displays domaina.com/domainb

How would I make it say domainb.com in the location?

I read some text at http://httpd.apache.org/docs/vhosts/examples.html

about apache, but I am just confused.



Thanks,

Will

hyper 05-15-2002 01:04 AM

#
# In this file, you need only change the value "yourdomain" to match
# your real domain ("whatever\.com", and all "." must be prefixed with a "\")
#
# Then you create the "subdomains" directory in your public_html directory
# and create in that directories named for the subdomain you want:
# http://iwantthis.yourdomain/ would be in /public_html/subdomains/iwantthis/
#
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?yourdomain$ [NC,OR]
RewriteCond %{REQUEST_URI} ^/?subdomains/ [NC]
RewriteRule ^. - [L]
RewriteCond %{HTTP_HOST} ^(www\.)?[^.]+\.yourdomain$ [NC]
RewriteCond %{REQUEST_URI} !^(www\.)?[^.]+\.yourdomain$ [NC]
RewriteRule ^(.+) %{HTTP_HOST}/$1 [NC]
RewriteRule ^(www\.)?([^.]+)\.yourdomain/(.*) /subdomains/$2/$3 [L]

GFED 05-15-2002 03:21 AM

is this insrted in my .htaccess file?

-=HUNGRYMAN=- 05-15-2002 03:31 AM

This is MUCH easier .... go to www.zoneedit.com and sign up ...
they offer FREE domain forwarding for up to 5 domails ... as well as free unlimited email forwarding for the same domains ...

and you can cloak the domain name as well .... I have used this service for directing many of the .NETs I own to the .COMs ...

oscer 05-15-2002 09:43 AM

Quote:

Originally posted by GFED
Anybody know how to do this?

I've got a domain at domaina.com with an IP address xxx.xxx.xxx.xxx

I want domainb.com to point to domaina.com/domainb

I made an index.cgi but it doesn't display domainb.com in the location it displays domaina.com/domainb

How would I make it say domainb.com in the location?

I read some text at http://httpd.apache.org/docs/vhosts/examples.html

about apache, but I am just confused.



Thanks,

Will



Normally This is DOne in DNS.

You might want to learn Bind :stoned It is not a Easy task one little messup will crash the whole thing :winkwink:

hyper 05-15-2002 09:53 AM

Quote:

Originally posted by GFED
is this insrted in my .htaccess file?
yes

GFED 05-15-2002 07:06 PM

Quote:

Originally posted by hyper

yes

It takes away my permission to view the page...


All times are GMT -7. The time now is 03:46 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123