Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I found this question between exam questions: Why won’t this configuration work on Linux for an Apache virtual host? Any suggestions? I need an explanation.

NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot "/www/chess/htdocs"
    ServerName www.c.com
    ServerAlias www.c.com

    php_value include_path .;/www/chess/htdocs/includes
    ErrorLog "logs/chess-error.log"
    CustomLog "logs/chess-access.log" common

  <Directory "/www/chess/htdocs"> 
      Options FollowSymLinks
      AllowOverride AuthConfig FileInfo
      Order allow,deny
      Allow from all
  </Directory> 

    AddType application/x-compress .Z 
    AddType application/x-gzip .gz .tgz 
    AddType application/x-httpd-php .php 
    AddType application/x-httpd-php .php3 
    AddType application/x-httpd-php .html 
    AddType audio/x-ms-wma .wma 
    AddType application/octet-stream .jar .class 

    DefaultType application/x-httpd-php 

    AddDefaultCharset UTF-8 
</VirtualHost>
share|improve this question
1  
Any chance it's as simple as not in /var/www ? – Ddorda Sep 8 '12 at 19:07
This question is perfect for serverfault.com. – Zagorax Sep 9 '12 at 7:06

migrated from stackoverflow.com Sep 10 '12 at 0:23

1 Answer

The semicolon is the Windows path separator. In Linux it's the colon (:).

share|improve this answer
Sneaky. I like it. – Zac B Oct 16 '12 at 17:51

Your Answer

 
discard

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