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 set up TOMCAT to access soft-connected folders

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

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to set up TOMCAT to access the soft connection folder. I hope you will get something after reading this article. Let's discuss it together.

A soft link is also called a symbolic link, and this file contains the pathname of another file. It can be any file or directory, and you can link files from different file systems.

Linked files can even link files that do not exist, which leads to a phenomenon commonly known as "chain breaking", and linked files can even link themselves in a loop. Similar to recursion in programming languages.

A soft connection can be generated with the ln-s command, as follows:

[root@ora156 ROOT] # ln-s / home/portalUpload. / upload

The pictures uploaded by the project are placed in the upload folder, and a soft link is made in this folder, which is actually stored in the portalUpload directory outside the project. But visit Times 404 through the URL of the project.

Because Tomcat does not allow soft connections by default.

Take Tomcat 6.0.33 as an example:

Context.xml file in the tomcat installation directory / conf directory

Just add the allowLinking= "true" attribute to Context.

After reading this article, I believe you have a certain understanding of "how to set up TOMCAT to access the folder of soft connections". If you want to know more about it, please follow the industry information channel. Thank you for reading!

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

Servers

Wechat

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

12
Report