# secondary domain preview

**URL:** <https://forums.interworx.com/t/secondary-domain-preview/12825>\
**Category:** General Inquries\
**Created:** [November 10, 2010, 12:40pm UTC](https://forums.interworx.com/t/secondary-domain-preview/12825 "2010-11-10T12:40:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kipper3d](https://forums.interworx.com/letter_avatar_proxy/v4/letter/k/3be4f8/32.png) [@kipper3d](https://forums.interworx.com/u/kipper3d)\
**Post date:** [November 10, 2010, 12:40pm UTC](https://forums.interworx.com/t/secondary-domain-preview/12825/1 "2010-11-10T12:40:16Z")

</div>

How can a user view a site using secondary domain on siteworx prior to pointing the domain to the server?

Primary domain you can use [http://hostname/~username](http://hostname/~username) - how can this be handled with secondary domain?

Thanks!

---

<div class="post-metadata">

**Author:** ![IWorx-Dan](https://forums.interworx.com/letter_avatar_proxy/v4/letter/i/d2c977/32.png) [@IWorx-Dan](https://forums.interworx.com/u/IWorx-Dan)\
**Post date:** [November 10, 2010, 1:52pm UTC](https://forums.interworx.com/t/secondary-domain-preview/12825/2 "2010-11-10T13:52:36Z")

</div>

Hi Kipper,

One option to see if a siteworx primary or secondary domain works before setting up DNS is to edit your hosts file to point to the IP that siteworx account is hosted on. Editing it is simple, you just need to add a line that looks like the line in bold:

```auto

#This is an example of the hosts file
127.0.0.1 localhost loopback
::1 localhost
[B]ip.ad.dr.es domain.com[/B]

```

the hosts file is usually located in:[%SystemRoot%](http://en.wikipedia.org/wiki/Environment_variable#System_path_variables)\system32\drivers\etc\ for Windows and /etc/hosts for Linux and Mac OS’s

There isn’t a ~username shortcut for a secondary siteworx domain because it shares the same unix user as the primary siteworx domain. Does this help?

---

<div class="post-metadata">

**Author:** ![R-n-R](https://forums.interworx.com/letter_avatar_proxy/v4/letter/r/ba9def/32.png) [@R-n-R](https://forums.interworx.com/u/R-n-R)\
**Post date:** [November 16, 2010, 12:10pm UTC](https://forums.interworx.com/t/secondary-domain-preview/12825/3 "2010-11-16T12:10:47Z")

</div>

Maybe a InterWorx could come up with a numbering scheme like the primary domain might be [mydomain.com](http://mydomain.com) so the Unix user would be “mydomain” so swap the last 3 charactors (to cover ALL bases in case some one should every have more than 100 secondary domains) with numerals, so I add [mysecondary.com](http://mysecondary.com) the UNIX user would be “mydom001”

I am sure this is how InterWorx handles like domains, as I have two SiteWorx accounts that are using the same first 8 characters the same, the UNIX user is changed with a number for the last character.

Just a thought.
