-
Notifications
You must be signed in to change notification settings - Fork 406
NGINX configuration equivalent to .htaccess #55
Copy link
Copy link
Closed
Description
Would be nice to document the config syntax for using NGINX.
Here's dist-web/.htaccess for Apache.
AddType application/wasm .wasm
RewriteEngine on
RewriteRule ^scope:.*?/(.*)$ $1 [NC]
RewriteRule ^plugin-proxy$ plugin-proxy.php [NC]
<FilesMatch "iframe-worker.html$">
Header set Origin-Agent-Cluster: ?1
</FilesMatch>
Rough draft for NGINX config (untested).
types {
application/wasm wasm;
}
location /scope:.*?/(.*) {
rewrite ^scope:.*?/(.*)$ $1 last;
}
location /plugin-proxy {
rewrite ^plugin-proxy$ plugin-proxy.php last;
}
location /iframe-worker.html {
add_header Origin-Agent-Cluster ?1;
}
Reference
- NGINX documentation
- Scoped URL routing
- Scoped WordPress instances to support multiple browser tabs #31
- Commit 5f03281 -
Rewrite /scope:.+/<URL> to just <URL>
- Plugin proxy
- Commit 228ccc3 -
Make wordpress.html configurable via query params
- Commit 228ccc3 -
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Fields
Give feedbackNo fields configured for issues without a type.