Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure Apache to support shtml

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

Today, the editor will share with you the relevant knowledge points about how to configure Apache to support shtml. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article.

Open the http.conf file and search for shtml

Remove the # of the first two lines and make it as follows

If you want to configure shtml on the entire server

Search options indexes followsymlinks again

Add includes to it as follows:]

Ok Chongqing apache

Then test it and create two files, one called header.shtml and one index.shtml.

The header.shtml code is as follows:

Two forms of inclusion are used: if you want to know, please find the relevant documentation

Then visit:

Shtml is configured successfully. It's good. It's strong.

Let's talk about it again if it is not a global configuration, but a site-by-site configuration. Can be as follows: specific I have not tested, all from the network.

Jane, say something:

The file file name is a relative path relative to the directory where the document using the # include directive is located. The included file can be in the same level directory or its subdirectory, but not in the next level directory. If it represents an nav_head.htm document in the current directory, it is file= "nav_head.htm". The virtual file name is the full path to the virtual directory on the web site. If it represents a nav_head.htm file in the hoyi directory relative to the server document root directory; it is virtual= "/ hoyi/nav_head.htm"

The above is the global configuration, if not written in this way

You can set it in a single directory:

The configuration of the virtual directory can be set as follows:

The copy code is as follows:

Namevirtualhost www.xing.com

Documentroot f:\ xing

Servername www.xing.com

Options indexes followsymlinks includes

Addtype text/html .shtml

Addoutputfilter includes .shtml

Allowoverride none

Order allow,deny

Allow from all

These are all the contents of the article "how to configure Apache to support shtml". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report