[英]How can I run my WebApplication files to the server without an Index.html or.php?
I have been looking everywhere around the internet and cannot find how to just simply run my Web Application files. 我一直在Internet上四处寻找,找不到简单地运行Web应用程序文件的方法。 I tried using XAMPP with Joomal but it wouldn't let me just use my own files I had to create a template or just add to an existing one.
我尝试将XAMPP与Joomal结合使用,但是它不允许我只使用自己的文件,而我不得不创建模板或将模板添加到现有模板中。
I am trying to run TinyMce, Htm, php, and js. 我正在尝试运行TinyMce,Htm,php和js。 But once I add my files to the htdocs folder in XAMPP it just shows me a file directory to navigate the folders and not run and present my web site.
但是,一旦我将文件添加到XAMPP的htdocs文件夹中,它只会显示一个文件目录来浏览这些文件夹,而不运行并显示我的网站。 Here is an example of what exactly is happening.
这是确切情况的一个示例 。
You need to switch off the Directory Listings , either in the apache configuration (preferably) or in the .htaccess file. 您需要关闭apache配置(最好是)或.htaccess文件中的目录列表 。
In httpd.conf, find the root directory of your website, and add Options -Indexes
: 在httpd.conf中,找到您网站的根目录,然后添加
Options -Indexes
:
<Directory "C:/xampp/htdocs">
Options -Indexes
</Directory>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.