Last update at :2024-05-14,Edit by888u
Under Linux, Apache generally does not display the file directory structure. This is to make the website more secure, but sometimes for convenience, we display the file structure to help visitors better find the files they want. We FTP is not installed, or there is no need to install it. At this time, it is convenient and quick to let apache display the website file directory structure.
If you visit a website and it prompts: “you don’t have permission to access on this server”, it means that the website does not provide a file directory structure.
How can I set it to display the file directory structure?
First, open etc/httpd/conf/httpd.conf
As shown:
Second: In centos6, after modifying the above settings and restarting apache, the website directory structure will generally not be displayed. You must open /etc/httpd/conf.d/welcome.conf
Will:
Options-Indexes ErrorDocument 403 /error/noindex.htmlModify to:
Options+IndexesRestart the server (service httpd restart),
Open the website and you will see the directory structure. As follows:
Reference: http://www.cnblogs.com/wxb0328/p/4214993.html
Recommended site search: free cloud server, shopex virtual host, US server rental, Korean virtual host domain name query, Hong Kong IP proxy, domain name space registration, server rental US high defense, personal virtual host, free space,
发表评论