Hi,

I have two sites running on my webserver. At the moment the domain is masked so I can't have forward slash. The website in the root directory can handle dns but how can I do this: http://www.domain.com/ resolve to http://myip/subdir/ So that: http://www.domain.com/subdir2/ resolves to http://myip/subdir/subdir2/

This would be really useful to me.

Hello James,

"Virtual hosting/vhost" is a method for hosting multiple domain names on a computer using a single IP address. This allows one machine to share its resources, such as memory and processor cycles, to use its resources more efficiently.

Name-based virtual hosts use multiple host names for the same webserver IP address.

http://en.wikipedia.org/wiki/Virtual_hosting

Kindly go through the above link to know more ...

Regards,

Sheltan T T

Thanks very muchh thats very helpful!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.