]> scripts.mit.edu Git - www/raw.git/blob - faq/132.mdwn
Import from TextPattern
[www/raw.git] / faq / 132.mdwn
1 [[!meta title="Can I add a vhost before I point my domain at scripts?"]]
2 The easiest approach is simply to
3 [point the domain at scripts](http://scripts.mit.edu/faq/14/do-cnames-work-with-the-script-service)
4 *before* you set it up, but if you wish to migrate a currently
5 active website, you may want to have the vhost set up on scripts
6 before changing the DNS to avoid interruption.
7
8 If you want to do this, scripts will require that you create a file
9 in the root directory of your existing website. For instance, if
10 you are trying to add the domain “example.com” and it asks for the
11 file “scripts\_870shdfs8.html”, you should make sure that
12 http://example.com/scripts\_870shdfs8.html exists (though its
13 content is irrelevant).
14
15 If you want to use a wildcard (e.g. \*.example.com), you should
16 make sure that *all* subdomains matching the wildcard point to the
17 same place, and contain the file listed \96 for instance, for
18 \*.example.com, a.example.com, b.example.com and c.example.com
19 should all contain the file.
20
21
22