![](/img/trans.png)
[英]How to run React application by clicking index.html file without any local server
[英]How can I run my WebApplication files to the server without an Index.html or.php?
您需要关闭apache配置(最好是)或.htaccess文件中的目录列表 。
在httpd.conf中,找到您网站的根目录,然后添加Options -Indexes
:
<Directory "C:/xampp/htdocs">
Options -Indexes
</Directory>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.