我正在使用wildfly 8.2.0和kubuntu 14.04。如果我在welcome-content文件夹下创建一个符号链接,我无法从浏览器中调用它。
例:
$ wildflyHome / welcome-content / test / index.html - > localhost:8080 / test / index.html ==>有效。
$ wildflyHome / welcome-content / symlink / index.html - > localhost:8080 / symlink / index.html ==>不起作用。
“symlink”是由...创建的符号链接
ln -s /path/to/symlink $wildflyHome/welcome-content
如何访问符号链接的内容?
提前致谢。
我遇到了同样的问题。我得到了一个WFLYUT0014:使用选项创建路径'/ iv-storage / imagens'的文件处理程序[directory-listing:'false',follow-symlink:'false',区分大小写:'true',safe-symlink -paths:'[]']在我的日志中。没有ideia如何使这个跟随符号链接为true。
您可以在下载子系统配置的文件处理程序部分中进行设置:
在子系统/服务器/主机中:
<location name="/your/web/path" handler="yourHandler"/>
在子系统/处理程序中:
<file name="yourHandler" follow-symlink="true" path="/your/local/path"/>
有关此配置文件的更多详细信息,请参阅Undertow subsystem configuration。