Merge pull request #55 from labriqueinternet/alias-traversal

Fix the issue alias_traversal
This commit is contained in:
Alexandre Aubin
2019-05-18 17:01:09 +02:00
committed by GitHub

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__/ ;