Unable to get /%postname%/ permalinks working, 404 on all links

This is going to sound crazy, but the following worked… I put the content in the following directory:

/var/www/myexamplesite.com/public_html
(and created log/ as well)

Along with the following entry in httpd.conf

<VirtualHost *:80>
ServerAlias www.myexamplesite.com myexamplesite.com
DocumentRoot /var/www/myexamplesite.com/public_html
ServerName www.myexamplesite.com

# Log file locations
LogLevel warn
ErrorLog  /var/www/myexamplesite.com/log/error.log
CustomLog /var/www/myexamplesite.com/log/access.log combined

<Directory /var/www/myexamplesite.com/public_html>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

</Directory>

</VirtualHost>

That’s it!

error code: 523