Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

First, this seems to be working fine on my server, but I am wondering about any "unknown" implications, especially any public-facing problems that could occur, such as "Google now hates your server..."

I have about 10 domains which are just serving a simple "We're offline" message.

I want all of these "offline" <VirtualHosts> to use the same <DocumentRoot>, like so:

<VirtualHost *:80>
      ServerName example1.com
      ServerAlias www.example1.com
      DocumentRoot /www/_offline.com
   <Directory /www/_offline.com>
      ...[snip]...
   </Directory>
</VirtualHost>

<VirtualHost *:80>
      ServerName example2.com
      ServerAlias www.example2.com
      DocumentRoot /www/_offline.com
   <Directory /www/_offline.com>
      ...[snip]...
   </Directory>
</VirtualHost>

Am I going to have any problems with this setup, or is this actually okay?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

This should be fine. You can optimise this somewhat by just using ServerAlias directives for all of your FQDNs in the one vhost, but it's not required.

share|improve this answer
    
Thanks womble. Would you mind giving me an example of that? –  Jeff Nov 16 '09 at 17:37
    
Uhm... ServerAlias example1.com; ServerAlias www.example1.com; ServerAlias example2.com; ServerAlias www.example2.com... –  womble Nov 16 '09 at 18:08
    
ServerAlias www.example3.com<cr>ServerAlias www.example4.com<cr> (and so on). Much less bloat. Please mark womble's response as the correct answer :) –  pauska Nov 16 '09 at 18:08
    
For the record, I don't think I can do that because I need logging set up for each site independently. Many thanks, however. I'll ask my Edit question in a new post. –  Jeff Nov 16 '09 at 18:32

Your Answer

 
discard

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.