简体   繁体   English

CWP Apache 中的索引文件

[英]Index files in CWP Apache

I have a CentOS server with CWP.我有一个带有 CWP 的 CentOS 服务器。 I would like on a website that I have on the server that when they access example.com/test and the test folder does not contain any index file that shows the index with the other files.我希望在我在服务器上拥有的网站上,当他们访问 example.com/test 并且测试文件夹不包含任何显示索引与其他文件的索引文件时。 Do I have to configure any parameter in .htaccess? .htaccess中是否需要配置任何参数? Right now I'm getting an Error 403.The permissions folder has 775 so you should not have a permission problem.现在我收到错误 403。权限文件夹有 775,所以你不应该有权限问题。 Thank you谢谢

If you have root access you can Fix permissions for the respective user account.如果您具有 root 访问权限,则可以修复相应用户帐户的权限。 If example.com/test folder is empty an index.html will be created in that folder.如果 example.com/test 文件夹为空,则将在该文件夹中创建 index.html。

If you don't have root access you can create a .htaccess directory-level configuration file in example.com/test to allow access to specific files you prefer viewable.如果您没有 root 访问权限,您可以在 example.com/test 中创建.htaccess目录级配置文件,以允许访问您希望查看的特定文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM