Mask url domain.com/junk/ with junk.domain.com?

I’ve poked around in the config and came up empty. Hopefully someone can point me to the right information.

Preference:
Create a directory on domain.com named junk.
Create an alias junk.domain.com that is really point to domain.com/junk/.

If that is impossible, how about:
Create a sub server under domain.com that will be accessed by junk.domain.com.

Which is the best way to go if either is possible?

Howdy,

Well, the simplest/preferred way to do that is to do what you suggested as your second though – just create a Sub Server under your main domain for junk.domain.com.

That is, select domain.com from the drop-down on the top-left, click Create Virtual Server, choose Sub-Server, then enter “junk.domain.com” as the Sub Server’s domain name.

Will that do what you’re after?

-Eric

Yep, what Eric said. A sub-server is the easiest and recommended way. :slight_smile:

It’s also possible to configure this manually, without a sub-server, but then you’d need to manually edit the BIND zone and use Apache’s mod_rewrite, which is “not for the faint-hearted” as Dumbledore would put it. :wink:

I wanted to make sure that was the way to go before I started making new sub servers all willy nilly :slight_smile:

I have created a sub server and it looks to work 100% perfectly. I think I actually do like this better than some URL masking solution.