bend_puzzle/.htaccess
2026-08-01 16:06:14 +09:00

22 lines
727 B
ApacheConf

# BEGIN LINKFIELD MANAGED PROXY
<IfModule mod_rewrite.c>
RewriteEngine On
# Prefer a native Apache proxy when the host permits it.
<IfModule mod_proxy.c>
<IfModule mod_proxy_wstunnel.c>
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule ^api/realtime/?$ ws://127.0.0.1:32956/api/realtime [P,L]
</IfModule>
RewriteRule ^api/(.*)$ http://127.0.0.1:32956/api/$1 [P,L]
</IfModule>
# Shared hosts often disable mod_proxy. Route ordinary API requests
# through the bundled PHP bridge instead.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^api/(.*)$ api-bridge.php?path=/api/$1 [QSA,L]
</IfModule>
<Files ".linkfield-port">
Require all denied
</Files>
# END LINKFIELD MANAGED PROXY