php - 从同一域运行 prestashop 应用程序和 Angular 应用程序
问题描述
我有两个应用程序:一个 Prestashop php 应用程序和一个 Angular 10 应用程序。我想要实现的是:当我导航到“http://example.com/”时,角度应用程序应该响应,当我导航到“http://example.com/shop/”时,我应该在 prestashop店铺。现在我实现的是:当我导航到“http://example.com/app/”时,角度应用程序会响应,当我导航到“http://example.com/”时,prestashop 应用程序会响应。
Apache 虚拟主机配置是这样的:
<VirtualHost *:80>
ServerName example.com
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/prestashop/"
<Directory "/Applications/XAMPP/xamppfiles/htdocs/prestashop/">
Options Indexes FollowSymLinks Includes execCGI
AllowOverride All
Require all granted
</Directory>
<IfModule mod_proxy.c>
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
ProxyStatus On
ProxyPass /app/ http://localhost:4200/
ProxyPassReverse /app/ http://localhost:4200/
</IfModule>
</VirtualHost>
我应该怎么办?
解决方案
推荐阅读
- c++ - 在 C++-17 中,如何在编译时检测模板化静态成员函数的存在
- git - Github 的主页?
- java - EJB 与执行相同功能的其他技术的主要区别?
- r - 对数据表对象使用 facet wrap
- python - 如何在乌龟中不回溯路径的情况下制作未填充的策略?
- discord.js - .setTimestamp 不适用于使用循环编辑的嵌入
- ruby-on-rails - Rails(5.2)中的防弹资产管道规范-如果资产pipie中缺少任何model.css或model.coffee,如何强制测试失败
- c# - Graph Api 读取电子邮件的权限
- python - python: tkinter 切换 svg 内容
- javascript - 比较两个不同的对象数组并在 API 调用后找到匹配项时将数据推送到新对象