Username Password
Bookmark and Share


Nginx 1.4.2

User pvanthony
Date 9/25/2013 3:29 am
Views 1506
Rating 2    Rate [
Previous · Next
User Message

Just noticed files with restricted permissions set in webgui are still being served.

The apache modperl is working correctly and stops the file from being served. The nginx does not seem to be following the rules set in the config.

I am guessing the line with .wgaccess is the issue. Does anyone have a solution for this? The nginx used is 1.4.2.

Here is the config that I think is the problem.

location /uploads {
		expires 2h;
		if ( $request_filename ~ "^(.*/)" ) {
			set $request_directory $document_root$1;
		if ( -f "$request_directory/.wgaccess" ) {

Anyone else encounter this same issue with nginx?


--- (Edited on 25-September-2013 4:29 pm [GMT+0800] by pvanthony) ---

Back to Top
Rate [

© 2018 Plain Black Corporation | All Rights Reserved