#PATH
<Directory "/www/wwwroot/aocty_project/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://127.0.0.1:8088
ProxyPassReverse /prod-api http://127.0.0.1:8088
使用Apache部署vue项目配置后台接口(若依vue)
最新推荐文章于 2024-05-17 15:59:29 发布
该配置文件段落展示了Apache服务器的目录配置,启用URL重写,确保非文件和非目录请求映射到.index.html。同时,设置了代理以将/prod-api请求转发到本地8088端口的后端服务,允许所有权限并启用SymLinks选项。
817

被折叠的 条评论
为什么被折叠?



