Skip to content

Commit 753b918

Browse files
committed
wordpress: Restore access to page at URL /resources/
* https://jquerymobile.com/resources/ * https://stage.jquerymobile.com/resources/ The old configuration in private repo at https://github.com/jquery/infrastructure, used the following: ``` rewrite /resources/?$ /index.php$is_args$args; location ^~ /resources/ { alias /var/www/wordpress/gw-resources/$host/; } ```
1 parent e9be3b3 commit 753b918

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/wordpress/templates/site/site.nginx.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ server {
2525
include /etc/nginx/wordpress-subsites/<%= @host %>.d/*.conf;
2626

2727
<%- if @gilded_wordpress -%>
28-
location ~ ^/resources/(?<name>.*) {
28+
# Avoid matching /resources/ itself as that can be a real page
29+
# https://jquerymobile.com/resources/
30+
location ~ ^/resources/(?<name>.+) {
2931
alias <%= @base_path %>/gw-resources/<%= @host %>/$name;
3032
}
3133
<%- end -%>

0 commit comments

Comments
 (0)