Put the following directives in your server block. nginx will then redirect URLs with double (or triple or multiple) slashes to the corresponding URL with a single slash.
merge_slashes off;
rewrite ^(.*?)//+(.*?)$ $1/$2 permanent;
| template <typename T> | |
| struct UniqueIDGenerator { | |
| std::atomic<T> _id; | |
| std::function<const T(const T&)> _nexter; | |
| template <typename NEXT> | |
| UniqueIDGenerator(const T& init, const NEXT& nexter) { | |
| _id.store(init, std::memory_order::memory_order_release); | |
| _nexter = nexter; | |
| } |
| <# | |
| .SYNOPSIS | |
| Create a GPU-P Guest driver package. | |
| .DESCRIPTION | |
| Gathers the necessary files for a GPU-P enabled Windows guest to run. | |
| .EXAMPLE | |
| New-GPUPDriverPackage -DestinationPath '.' | |
| .EXAMPLE | |
| New-GPUPDriverPackage -Filter 'nvidia' -DestinationPath '.' | |
| .INPUTS |
Put the following directives in your server block. nginx will then redirect URLs with double (or triple or multiple) slashes to the corresponding URL with a single slash.
merge_slashes off;
rewrite ^(.*?)//+(.*?)$ $1/$2 permanent;