如何在Apache上部署
Apache上部署需要如何设置?
java上我试了好几次不行,最后改成up用的ngnix,然后路由分配调用java后台接口的。
同问...如何部署dist到tomcat
部署dist到ngnix后,login页面怎么弄呀,没整出来。 @jiang223
nginx 参考 https://github.com/zuiidea/antd-admin/issues/641 apache 参考楼下
记录一下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>