Apache XAMPP虚拟主机使错误403 Windows

发布于 2025-01-27 10:18:12 字数 638 浏览 2 评论 0原文

我只想启用test.php文件可以通过虚拟霍斯特访问,因此我仅在Windows Host File和

<VirtualHost *:80>
DocumentRoot "D:/Programmordner/test"
ServerName test.localhost
<Directory "D:/Programmordner/test">
require all granted
    
#<FilesMatch "^((test|test2).testdateiendung1|.+.testdateiendung2)$">
<FilesMatch "^(test.php)$">
    Allow from All
</FilesMatch>

HTTPD-VHOSTS.CON中

添加127.0.0.1 test.localhost其次,看来我什至无法通过单击Apache接口上的管理员按钮来打开默认文档网站,这不应该受到影响?如果我删除了第二个,则Windows主机文件中的更改不会影响任何内容,并且可以访问标准HTDOC中的所有文件。我切换了不同的版本,例如允许,访问被拒绝获得访问,但是

如果有人知道已经解决了我的问题,我不会怨恨他,但是我在寻找它,但没有帮助

I simply want to enable the test.php file to be accessible via a virtualhost so I added just 127.0.0.1 test.localhost in the windows host file and

<VirtualHost *:80>
DocumentRoot "D:/Programmordner/test"
ServerName test.localhost
<Directory "D:/Programmordner/test">
require all granted
    
#<FilesMatch "^((test|test2).testdateiendung1|.+.testdateiendung2)
quot;>
<FilesMatch "^(test.php)
quot;>
    Allow from All
</FilesMatch>

in httpd-vhosts.conf

Now if I add the second, it seems I even cannot open the default documentation website by clicking the admin-button on the apache interface, which should not be affected? If I erase the second the alterations in the windows host file doesnt affect anything and I can access all files in standard htdocs. I switched different versions like allow from all, access denied access granted but nothing changed

If somebody knows there is already which solves my problem, I will not grudge him however I looked for it and it did not help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瞄了个咪的 2025-02-03 10:18:12

我进行了几个修复程序,然后更改为端口80(没有HTTPS :(),现在一切都在运行。

I made several fixes and changed to Port 80 (without httpS :( ) and everything is running now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文