Trouble with XWiki CSS styling when using nginx proxy with '/xwiki' context path.

I want my application to open in xwiki when I type http://mydomain/xwiki. I achieved that initialization occurs and html markup arrives, without styles.
To do this, I added xwiki.webapppath=xwiki to the xwiki.cfg file, and I also added the following to the nginx configuration:
location /xwiki/ {
proxy_pass http://127.0.0.1:8179/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Host $host;
proxy_redirect off;
sub_filter ‘href="/’ ‘href="/xwiki/’;
sub_filter ‘src="/’ ‘src="/xwiki/’;
sub_filter_once off;
}