我想在我的本地网络上运行OpenSuse上的wordpress。 我的虚拟主机:
<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>
并添加到/ etc / hosts:
192.168.0.2 local.wordnews.pl
但是当我尝试在浏览器上打开这个地址时,我看到: 错误403 当我尝试local.wordnews.pl/wp-admin/install.php时,我看到: 错误404
答案 0 :(得分:0)
我认为在您的Directory
区块中,您想要Allow
代替Deny
<Directory /var/www/wordnews>
Options +Indexes FollowSymLinks +ExecCGI
AllowOverride AuthConfig Indexes
Order allow,deny
Allow from all
</Directory>