我有一个我使用的apache2:
static文件夹中提供一些静态文件 8870上运行的Web应用程序 现在,我想:
/vocabulary时提供static/vocabulary/index.html的内容 /vocabulary/*时继续提供应用内容 我尝试使用排除设置两个规则! 规则,但它不工作。
我该怎么做?
这是我的configuration文件。
<VirtualHost *:80> ServerName example.com DocumentRoot "/static" <Directory /> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all Header set Access-Control-Allow-Origin "*" </Directory> # Proxy describe rules ProxyPass /home http://localhost:8870/home ProxyPassReverse /home http://localhost:8870/home ProxyPass /vocabulary http://localhost:8870/vocabulary ProxyPassReverse /vocabulary http://localhost:8870/vocabulary </VirtualHost>