1. The problem I’m having:
http://mysite:8080 {
map {uri} {blogname} {
~(/[^/]+/)files/(.*) "${1}"
}
map {blogname} {blogid} {
/ 1
/eng/ 2
default -99999
#Ref: http://wordpress.org/extend/plugins/nginx-helper/
#include /var/www/wordpress/wp-content/plugins/nginx-helper/map.conf ;
}
uri path_regexp ^{blogname}files/(.+)$ "/wp-content/blogs.dir/{blogid}/files/$1"
reverse_proxy 127.0.0.1:8081
blogname variable in path_regexp not working
if i replace it with just “/eng/” (hardcoded) all works as expected
is it possible at all to use variables in this place?
3. Caddy version:
caddy version
v2.6.4 h1:2hwYqiRwk1tf3VruhMpLcYTg+11fCdr8S3jhNAdnPy8=
4. How I installed and ran Caddy:
yum install yum-plugin-copr yum copr enable @caddy/caddy yum install caddy
a. System environment:
centos 7
linkes
i need to recreate this “files” to “blogs.dir” mapping
say we have 10 sites in multisite with sub dirs