htaccess-for-nginx icon indicating copy to clipboard operation
htaccess-for-nginx copied to clipboard

.htaccess for nginx enables the nginx high performance webserver to deal with .htaccess files.

Results 19 htaccess-for-nginx issues
Sort by recently updated
recently updated
newest added

> https://opm.openresty.org/ Would be very very neat to have this module in OPM for easy install in OpenResty instances.

Does the htaccess only works on primary directory? not recursive?

Hi Team, I have installed nginx with luajit for htaccess redirection but its not working , here is the .htaccess rule which I want to run ``` RewriteEngine on RewriteCond...

[error] 11#11: *4 lua entry thread aborted: runtime error: /etc/nginx/lua/htaccess.lua:893: bad argument #1 to 'match' (string expected, got nil)

Uhm, Hello, I tried htaccess.lua with laravel .htaccess : ``` Options -MultiViews -Indexes RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes...

nginx: [emerg] unknown directive "rewrite_by_lua_file" in /etc/nginx/sites-enabled/domain.com.conf:6 nginx: configuration file /etc/nginx/nginx.conf test failed

Our NGINX working dir is mounted to an NFS, so any `realpath_root` will have a cryptic NFS route and therefor would never match the requested files path. Either we switch...

When the `realpath_root` does not exist on the filesystem, I am getting a HTTP 500 (instead of a 404). Here is the relevant information from the nginx log. ``` [error]...

I'm getting an error using `htaccess.lua` with `openresty/1.21.4.1` under the following circumstances: * I'm using the latest `htaccess.lua` from this repository. I've placed it in `/usr/local/openresty/nginx/scripts`. * I have a...

This will make the configuration and debugging steps clearer