Configure Symlinks for single directory in Tomcat

后端 未结 7 1122
情歌与酒
情歌与酒 2020-12-05 06:55

I have a directory to which a process uploads some .pdf files. This process is out of my control.

I need to make those files available through the websi

相关标签:
7条回答
  • 2020-12-05 07:53

    Yes I know it's an old question, but I found a new solution, using mount with the --bind option instead of a symlink, and tomcat doesn't need any reconfiguring:

    cd /var/lib/tomcat5/webapps/test1/

    mkdir files

    mount --bind /path/to/actual/upload/directory/files files

    0 讨论(0)
提交回复
热议问题