Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am developing a website on my own development servers. The client is loading some fonts that are white-listed on just their domain, the problem is that during development I cannot see them on my dev server. Someone said I can somehow alias the domain via Apache and use a hosts file to point at the domain so the request for the fonts gets through as though from the appropriate domain since they've white-listed *

share|improve this question
up vote 1 down vote accepted

So I have successfully aliased the client's domain to my own server. Here is how:

In your vhosts.conf file create an alias to a fake subdomain to your clients site. For example if your client is create or something:

<VirtualHost *:80>

     DocumentRoot /var/path/to/your/files/

     <Directory />
         Options FollowSymLinks
     <Directory /var/path/to/your/files/>
         Options Indexes FollowSymLinks MultiViews
         Order allow,deny
         allow from all


Don't forget to issue the reconfigure command on your Apache server and restart.

In your hosts file on your local machine, point the ip of your server ( to the fake domain:

Go to in your web browser and you should see the contents of The calls will seem to come from the client domain, and fonts will be white listed (so long as they've white-listed * and not

share|improve this answer

I'd do a test if you can curl or wget the font files directly. If you can, you'll need some server configuration to make them accessible; some browsers make it very difficult to do cross domain fonts. If you can't, you'll need to acquire those fonts directly from your client.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.