Web Hosting Talk







View Full Version : URL for newly created virtual site


afriq
05-24-2001, 07:01 AM
Normally when one signs up with a hosting company, a temporary URL is made available for testing purposes (for example http://216.x.x.x/newsite) until such time that the DNS info has been updated and propagated.

What would this be for the RaQ 4? I've tried various combinations using the IP address and new sub-directories, but without any success.

Ideas, anybody?

Thanks,

Johan

iplexx
05-24-2001, 07:42 AM
I _think_ if you just put one vsite on one IP, you can access the site via IP address....


Otherwise, easiest thing is to enter your domain & IP in your local hosts file (/etc/hosts, \windows\hosts).

You can work around on your site, but just on that computer you entered the data in the hosts file.


Other solution would be to use a existing domain to access, something like www.newdomain.anydomain.com

swissmonk
05-24-2001, 08:00 AM
You can insert this line in your httpd.conf (mainsite)

AliasMatch ^/newsite/([^/]+)(/(.*))? /home/sites/$1/web/$3

Then restart apache

After that, you can access it with:

www.originaldomain.com/newsite/www.newdomain.com

Work great!

afriq
05-24-2001, 08:31 AM
swissmonk,

>>
AliasMatch ^/newsite/([^/]+)(/(.*))? /home/sites/$1/web/$3
>>

You're a *star* - it works like a charm!

*sigh* - back to the Apache documentation. The RaQ handles "one-man, one domain" type sites quite well :) But anything out of the ordinary requires some effort - like everything else in life!

Thanks,

Johan

Omair Haroon
06-04-2001, 08:03 AM
am i doing it right?

NameVirtualHost 216.234.186.28
<VirtualHost 216.234.186.28>
ServerName www.hostingbetter.com
ServerAdmin admin
DocumentRoot /home/sites/home/web
RewriteEngine on
RewriteCond %{HTTP_HOST} !^216.234.186.28(:80)?$
RewriteCond %{HTTP_HOST} !^www.hostingbetter.com(:80)?$
RewriteRule ^/(.*) http://www.hostingbetter.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
ScriptAlias /_vti_bin/_vti_adm/ /home/sites/home/web/_vti_bin/_vti_adm/
ScriptAlias /_vti_bin/_vti_aut/ /home/sites/home/web/_vti_bin/_vti_aut/
ScriptAlias /_vti_bin/ /home/sites/home/web/_vti_bin/
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
</VirtualHost>

AliasMatch ^/newsite/([^/]+)(/(.*))? /home/sites/$1/web/$3


----------------------------------------------------

the line should be before the tag closes or have I done it right ?


Thanks,

Chicken
06-04-2001, 01:43 PM
I'd say before the tag closes, right under the other AliasMatch (to keep things tidy), though I've not tried it.

NewonNet
06-25-2001, 06:41 AM
I tried this and it does not work for me.. What's wrong

I have a raq4i

modified etc/httpd/conf/httpd.conf file per above.


NewToNet

highlander
06-25-2001, 07:37 AM
Have you restarted apache?

/etc/rc.d/init.d/httpd restart

Robert

NewonNet
06-25-2001, 07:58 AM
Yep I did. All I'm getting is file not found. I confirmed that index.html is in the directory I'm trying to get to.

Apreciated the help. Anyone else have suggestions

-Edward-
06-25-2001, 08:10 AM
have you tryed accessing this way ?

http://www.yourdomain.com/sites/www.newdomain.com

NewonNet
06-25-2001, 10:46 PM
Thanks for all your help.

Turns out to be my mistake. I created the virtual domain that was misspelled.

That will do it to you everytime!

NewtoNet