emattias
November 25th, 2009, 03:24 PM
I'm running Apache2.2 with name based virtual hosts
How can I make it so that this request:
http://serverIp/example.com (http://serverIp/example.com)
is the same as going to http://example.com (http://%3Cb%3Eexample.com%3C/b%3E) on a machine where example.com has been pointed to my servers ip in the hosts file?
I'd like to be able to send a link to a client without forcing them to modify their hosts file to point example.com to my servers ip.
My idea was to fake a domain name request using a sub directory but porhaps this has a smarter soultion?
How can I make it so that this request:
http://serverIp/example.com (http://serverIp/example.com)
is the same as going to http://example.com (http://%3Cb%3Eexample.com%3C/b%3E) on a machine where example.com has been pointed to my servers ip in the hosts file?
I'd like to be able to send a link to a client without forcing them to modify their hosts file to point example.com to my servers ip.
My idea was to fake a domain name request using a sub directory but porhaps this has a smarter soultion?