简体   繁体   English

我如何在没有Index.html或.php的情况下将WebApplication文件运行到服务器?

[英]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.

相关问题 如何在没有任何本地服务器的情况下通过单击 index.html 文件来运行 React 应用程序 - How to run React application by clicking index.html file without any local server 我可以在没有 npm 启动和 npx create-react-app 的情况下使用 React 运行 index.html 吗? - Can I run index.html with React without npm start and npx create-react-app? 如何将index.html中的内容放入我的view.html? - How can I put content from my index.html into my view.html? Angular 2 - 如何使关键字和描述的index.html文件标题和元标记动态化 - Angular 2 - how do I make my index.html files title and meta tags for keywords and description dynamic 如何将我的 Index.html 中的按钮连接到我的 Unity 代码 - How can i connect Buttons from my Index.html to my Unity Code 当我运行index.html时android没有检测到我的.css和.js文件时该怎么办? - What to do when android doesn't detect my .css and .js files when I run index.html? 如何在不触及index.html的情况下将外部javascript标记添加到Ember JS应用程序? - How can I add an external javascript tag to an Ember JS app without touching the index.html? 如何使用gulp-inject将文件的内容插入到index.html中? - How can I insert the contents of a file in my index.html with gulp-inject? 如何在 React 的 index.html 文件中正确包含 css 文件? - How can I properly include a css file in my index.html file in React? 我的Javascript Ajax请求可在Phonegap index.html中使用,但不能在其他任何页面中使用,如何解决此问题? - My Javascript Ajax request works in Phonegap index.html but not in any other pages, how can I fix this?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM