1
着信URLを再マップしてAliasMatchで捕捉できるようにするには、mod_rewriteが必要です。AliasMatchで捕捉するApacheリライトURL
RewriteCond %{REQUEST_URI} ^/app/(.*)$
RewriteRule ^/app/(.*) ^/dev-dave/app/$1
RewriteCond %{REQUEST_URI} ^/static/(.*)$
RewriteRule ^/static/(.*) ^/dev-dave/static/$1
AliasMatch ^/(.*)/static/(.*)$ /var/www/html/cosmos/$1/dist/static/$2
AliasMatch ^/(.*)/app/(.*)$ /var/www/html/cosmos/$1/dist/index.html
<Directory /var/www/html/cosmos>
AllowOverride None
Require all granted
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
</IfModule>
</Directory>
これは可能ですか?私はこれを働かせることはできません。
書き換えルールに '[PT]'フラグを追加すると助けになります –
あなたはすばらしいです。それはそれだった。それを回答として投稿したいなら、私はそれを受け入れます。 – Dmac