Apache XAMPP虚拟主机使错误403 Windows
我只想启用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我进行了几个修复程序,然后更改为端口80(没有HTTPS :(),现在一切都在运行。
I made several fixes and changed to Port 80 (without httpS :( ) and everything is running now.