Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
The problem it is:
location ~ (.*)/x-progress-id:(\w*) {
rewrite ^(.*)/x-progress-id:(\w*) $1?X-Progress-ID=$2;
}
replace with:
location ~ (.*)/x-progress-id:(\w*) {
rewrite ^(.*)/x-progress-id:(\w*) /progress?X-Progress-ID=$2;
}
because:
location ^~ /progress {
report_uploads uploads;
}
the uploadprogress is avaiable on: http://example.tld/progress
and not subdir e.g.:
http://example.tld/subdir/progress
or i`m wrong?
PS: thanks for the greate modul!!!
bye
Comment | File | Size | Author |
---|---|---|---|
#2 | 876564-filefield_nginx_progress-in-subdir.patch | 962 bytes | smoothify |
Comments
Comment #1
smoothify CreditAttribution: smoothify commentedAre you actually experiencing trouble with running drupal in a subdirectory?
I will try and test this, but if there is a problem it would be the following that needs to be changed
from :
location ^~ /progress {
report_uploads uploads;
}
to :
location ^~ /SUBDIR/progress {
report_uploads uploads;
}
alternatively the module could make this setting configurable from a settings page.
Comment #2
smoothify CreditAttribution: smoothify commentedI looked into this further and managed to reproduce the issue.
Here is a patch that makes sure it uses the root of the domain and not the subdirectory.
Please let me know if it works for you.
Comment #3
DrachenKaiser CreditAttribution: DrachenKaiser commentedHello,
thanks, it is working!
Comment #4
smoothify CreditAttribution: smoothify commentedgreat, committed :)