apache/debian squeeze server loading directory listing instead of website

Posted by Diego on Server Fault See other posts from Server Fault or by Diego
Published on 2012-06-04T20:07:16Z Indexed on 2012/06/04 22:42 UTC
Read the original article Hit count: 256

Filed under:
|
|

when you navigate to mywebsite.com/ you see an apache page showing a folder called mywebsite.com/, clicking there then takes me to mywebsite.com/mywebiste.com which doesn't exist, so wordpress shows me the a 404 error. I'm trying to host a wordpress site at mywebsite.com/ but I think I have some kind of directory listing wrong somewhere, though I'm pretty sure I've set up my /etc/apache2/sites-available/mywebsite.com correctly:

<VirtualHost *:80>
ServerName mywebsite.com
ServerAdmin [email protected]
DocumentRoot /var/www/mywebsite.com/
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
LogLevel warn
</VirtualHost>

© Server Fault or respective owner

Related posts about apache2

Related posts about debian