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.

My virtual host file is below. There is a directory /home/jonathan/cats/, and it contains an index.html. And it is world-readable, with the directory being world-executable. (Other VirtualHosts exist on the same host nicely.)

I'd like to know for future reference what the problem is here so I can recognize it.

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
ServerName cats.stornge.com
ServerAlias cats.jonathanhayward.com, www.cats.jonathanhayward.com

    DocumentRoot /home/jonathan/cats
    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>
    <Directory /home/jonathan/cats>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

    DirectoryIndex index.html

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
share|improve this question
    
Do you have SELinux enabled? If so you might need to set SELinux web permissions to the directory: chcon -R -t httpd_sys_content_t /home/jonathan/cats –  Rup May 9 '13 at 15:03
    
No; it's a mainstream Ubuntu. –  Jonathan Hayward May 9 '13 at 15:05
    
Is the bouncy balls page your 404? –  NickW May 9 '13 at 15:23
    
I get a page with three animated balls from www.cat.jonathanhayward.com, and cats.stornge.com but what looks like your homepage from cats.jonathonhayward.com, where are you accessing your page from? –  NickW May 9 '13 at 15:26
1  
@Jonathan Hayward The comma in the ServerAlias is not necessary.. it may actually be harmful. –  NickW May 9 '13 at 16:42

1 Answer 1

up vote 1 down vote accepted

I'm going to go ahead and answer this, you should not put commas in the ServerAlias directive, the only divider accepted is a space, so it should be:

ServerAlias cats.jonathanhayward.com www.cats.jonathanhayward.com

share|improve this answer
    
Thank you; I saw your comment and was going to ask you to restate your response as an answer. Upvoted and accepted with pleasure. –  Jonathan Hayward May 10 '13 at 11:22
    
Glad to have been of assistance! –  NickW May 10 '13 at 11:25

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.