antd-admin icon indicating copy to clipboard operation
antd-admin copied to clipboard

如何在Apache上部署

Open LeoyangUp opened this issue 9 years ago • 5 comments

Apache上部署需要如何设置?

LeoyangUp avatar Aug 18 '17 06:08 LeoyangUp

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

jiang223 avatar Aug 20 '17 15:08 jiang223

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

mapengze avatar Aug 23 '17 01:08 mapengze

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

liaojuncong avatar Sep 12 '17 12:09 liaojuncong

nginx 参考 https://github.com/zuiidea/antd-admin/issues/641 apache 参考楼下

superlbr avatar Mar 29 '18 12:03 superlbr

记录一下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>

zhaozhuoguang avatar Jul 08 '20 08:07 zhaozhuoguang