site returns 404 on every request, except / After my site is moved from a shared hosting plan to VPS (dreamhost), all request returns:


  Not Found
  
  The requested URL /index.php was not found on this server.
  
  Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


For example.com/, it does returns some content. Any other requests (e.g. example.com/install.php) returns 404.

Rewrite settings are as default:

RewriteEngine on

# RewriteBase /

# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


What should I check?

Update:

If I request example.com/? or example.com/?q=user, it returns:


  Site Temporarily Unavailable
  We apologize for the inconvenience. Please contact the webmaster/ tech support immediately to have them rectify this.
  
  error id: "bad_httpd_conf"
Check to make sure that the directory containing Drupal on your server can read the contents of your .htaccess files (the AllowOverride directive in your httpd.conf controls what will be processed). In my experience, AllowOverride None set for that directory or a parent directory is the most common culprit  (remember: directives are inherited).