我有一个可正常运行的React应用,该应用通过ProxyPass在Apache虚拟主机mydomain.com上运行。
这是我的VirtualHost配置:
<VirtualHost *:80>
ServerName mydomain.com
ServerAlias www.mydomain.com
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:3005/
ProxyPassReverse / http://localhost:3005/
# This is needed only if you want to use web sockets
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/socket.io [NC]
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:3000/$1 [P,L]
</VirtualHost>
现在,我想在子文件夹mydomain.com/blog
我们该怎么做: