xampp403 forbidden怎么解决

2026年09月27日 23:12
有1个网友回答
网友(1):

第一步:注销,如下样式:
#DocumentRoot "C:/myenv/apache/htdocs"
第二步:启动虚拟主机的配置,如下样式:
Include conf/extra/httpd-vhosts.conf

第三步:配置httpd-vhosts.conf,增加如下样式:
DocumentRoot "D:/myblog2" ServerName seophp.example.com DirectoryIndex test.html index.html index.htm index.php Options FollowSymLinks#AllowOverride None 不许可别人修改我们的页面 AllowOverride None Order allow,deny Allow from all

注意标点符号,apache对中英标点号是不检测的,但是运行会出问题。

如果不行就看一下\apache\logs\error.log转上看看。

你这些是否是多余的
《httpd.conf检查了httpd-vhosts.conf是打开的httpd-vhosts.conf中的配置如下:NameVirtualHost 127.0.0.1:80 DocumentRoot "D:/xampp/htdocs" ServerName localhost
》