Web Hosting Talk







View Full Version : Browsing web site using IP Address


WebWorx
08-15-2002, 07:46 AM
Hi,

I have a customer (and I dare say there will be more) that has setup his internal network with his domain name.

When he browses for his web site he goes to www.domain.com and gets his own server.

On Raq4, what would be the address to go to for him to browse his site?

xxx.xxx.xxx.xxx/????????

Tried searching but couldn't find anything on this.

blacknight
08-15-2002, 08:11 AM
I'm not 100% sure I understand the question, but here goes..

If you have set up the domain on the RAQ properly, then the www.somedomain.com would be www.somedomain.com

However, if you are talking about previewing a client's site before DNS propagation, then it's a different matter.

WebWorx
08-15-2002, 08:16 AM
It will be pretty much like previewing a customers site before propegation.

Basically when the customer types into his browser www.hisdomain.com it brings up his internal intranet site I guess you would call it. Because his W2k server's domain is hisdomain.com his browser goes there and does not even look at my server.

He needs to basically point his browser at my server some how to view his site.

e.g. [ip address]/hisdomain
or www.mydomain.com/~www.hisdomain.com

something like that.

Grant

WebWorx
08-15-2002, 08:26 AM
Ok,

Fixed it.

I found the tread on viewing before propogation.

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

in /etc/httpd/conf/httpd.conf

put this where your main domain name is

then all new sites can also be viewd at

http://www.domain.com/preview/www.clientdomain.com

(in the thread before this it forgot to mention restarting httpd)

Works a treat

Thanks anyway.
Grant

blacknight
08-15-2002, 08:31 AM
Glad you found that.

cobalt-serve
08-15-2002, 09:32 AM
Glade to see your makeing use of my code

Originally posted by WebWorx
Ok,

Fixed it.

I found the tread on viewing before propogation.

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

in /etc/httpd/conf/httpd.conf

put this where your main domain name is

then all new sites can also be viewd at

http://www.domain.com/preview/www.clientdomain.com

(in the thread before this it forgot to mention restarting httpd)

Works a treat

Thanks anyway.
Grant

WebWorx
08-15-2002, 09:47 AM
And what a nice piece of code it is Cobalt.

(I did make reference to the fact it was from another thread, just didn't mention it was from you. :cartman: )

Thanks for the help anyway.

G