Fix the issue alias_traversal

This commit is contained in:
Kayou
2019-03-26 18:59:21 +01:00
committed by GitHub
parent 9b61a849a9
commit 16a8fcd4e8

View File

@@ -15,7 +15,8 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
location __PATH__ { #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
# Path to source # Path to source
alias __FINALPATH__/ ; alias __FINALPATH__/ ;