前端项目由nginx迁移到apache httpd

前端项目由nginx迁移到apache httpd

前端项目存放目录为 /var/www/dist
虚拟主机端口80
反向代理拦截 /prod/api
后端服务地址 http://192.168.0.44:8097

<VirtualHost *:80>
    DocumentRoot /var/www/dist
    ServerName www.dist.com
    <Directory /var/www/dist>
        RewriteEngine on
        RewriteCond %{
   REQUEST_FILENAME} !-f
        RewriteCond %{
   REQUEST_FILENAME} !-d
        RewriteRule . index.html [L]
        SetOutputFilter DEFLATE
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.php index.html index.htm default.php default.html default.htm
    </Directory>
    ProxyRequests off
    ProxyPass /prod-api http://192.168.0.44:8097
    ProxyPassReverse /prod-api http://192.168.0.44:8097
</VirtualHost>

小尾巴~~
只要有积累,就会有进步

相关推荐

  1. 前端项目nginx迁移apache httpd

    2024-01-10 08:14:02       38 阅读
  2. nginx部署前端项目总结

    2024-01-10 08:14:02       44 阅读
  3. vue前端项目启动报错,nodeC:盘改D:盘

    2024-01-10 08:14:02       20 阅读
  4. gitee仓库项目迁移gitlab仓库

    2024-01-10 08:14:02       36 阅读
  5. Nginx配置多个前端项目

    2024-01-10 08:14:02       10 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-01-10 08:14:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-10 08:14:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-10 08:14:02       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-10 08:14:02       20 阅读

热门阅读

  1. Leetcode 1367. Linked List in Binary Tree (二叉树好题)

    2024-01-10 08:14:02       31 阅读
  2. 笔记:ubuntu22.04重启后无法启动网络

    2024-01-10 08:14:02       35 阅读
  3. nacos和openFeign

    2024-01-10 08:14:02       23 阅读
  4. docker 安装redis集群

    2024-01-10 08:14:02       38 阅读
  5. CPU控制的独立式键盘扫描实验

    2024-01-10 08:14:02       28 阅读
  6. Qt UI框架和Duilib UI框架差别

    2024-01-10 08:14:02       34 阅读
  7. 7个Linux搜索和过滤命令

    2024-01-10 08:14:02       34 阅读
  8. C++ 中关键字 Static

    2024-01-10 08:14:02       41 阅读
  9. vue day06

    vue day06

    2024-01-10 08:14:02      38 阅读
  10. 梯度提升机(Gradient Boosting Machines,GBM)

    2024-01-10 08:14:02       56 阅读
  11. Android 8.1 默认应用加入系统白名单

    2024-01-10 08:14:02       38 阅读
  12. Leetcode15-最大字符串配对数目(2744)

    2024-01-10 08:14:02       35 阅读
  13. Excel使用pandas拆分单元格扩展

    2024-01-10 08:14:02       38 阅读
  14. windows配置电脑网络IP的方法

    2024-01-10 08:14:02       35 阅读
  15. 在Linux中tomcat执行shutdown.sh之后进程还存在

    2024-01-10 08:14:02       34 阅读
  16. 在Linux中tomcat出现乱码

    2024-01-10 08:14:02       35 阅读