local wordpress on apache2 error 403

I wanna run wordpress on OpenSuse in my local network.
My virtualhost:

<VirtualHost 192.168.0.2:99>
 DocumentRoot /var/www/wordnews/
 ServerName local.wordnews.pl
 ErrorLog "/var/log/apache2.err"
 RewriteEngine on
 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
 RewriteRule .* - [F]
 <Directory /var/www/wordnews>
         Options +Indexes FollowSymLinks +ExecCGI
                 AllowOverride AuthConfig Indexes
         Order allow,deny
         Deny from all
 </Directory>
 </VirtualHost>

and add to /etc/hosts :

Read More
192.168.0.2 local.wordnews.pl

but when i try open this address on broweser, i see:
Error 403
and when i try local.wordnews.pl/wp-admin/install.php i see:
Error 404

Related posts

Leave a Reply

1 comment

  1. I think in your Directory block, you want to make it Allow instead of Deny

    <Directory /var/www/wordnews>
         Options +Indexes FollowSymLinks +ExecCGI
                 AllowOverride AuthConfig Indexes
         Order allow,deny
         Allow from all
    </Directory>