Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何在Apache上部署 #515

Closed
LeoyangUp opened this issue Aug 18, 2017 · 5 comments
Closed

如何在Apache上部署 #515

LeoyangUp opened this issue Aug 18, 2017 · 5 comments

Comments

@LeoyangUp
Copy link

Apache上部署需要如何设置?

@jiang223
Copy link

java上我试了好几次不行,最后改成up用的ngnix,然后路由分配调用java后台接口的。

@mapengze
Copy link

同问...如何部署dist到tomcat

@liaojuncong
Copy link

liaojuncong commented Sep 12, 2017

部署dist到ngnix后,login页面怎么弄呀,没整出来。 @jiang223

@superlbr
Copy link
Collaborator

superlbr commented Mar 29, 2018

nginx 参考 #641
apache 参考楼下

@zhaozhuoguang
Copy link

zhaozhuoguang commented Jul 8, 2020

记录一下apache2.4 的部署配置。PS:我也不懂,但亲测有效
httpd-vhosts.conf文件
<VirtualHost *:80>
ServerName antd-admin.zuiidea.com
DocumentRoot "${INSTALL_DIR}/www/antd"
<Directory "${INSTALL_DIR}/www/antd">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>

ProxyRequests Off
ProxyPass /api http://localhost:7000/api
ProxyPassReverse /api http://localhost:7000/api
</VirtualHost>

.htaccess文件 /www/antd/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants