defect 4625: fix the issue that restapi does not work on Ubuntu
This commit is contained in:
parent
21204f4dde
commit
aa7765accf
@ -30,7 +30,7 @@ case "$1" in
|
||||
update-rc.d xcatd disable
|
||||
rm -f /usr/sbin/xcatd #remove the symbolic
|
||||
|
||||
rm -f /etc/apache2/conf.d/xcat-ws.conf
|
||||
rm -f /etc/apache2/conf-enabled/xcat-ws.conf
|
||||
;;
|
||||
|
||||
*)
|
||||
|
@ -66,9 +66,10 @@ binary-arch:
|
||||
chmod 644 $(rootdir)/lib/perl/xCAT_schema/samples/*
|
||||
chmod 644 $(rootdir)/lib/shfunctions
|
||||
chmod 644 $(rootdir)/share/doc/packages/xCAT-server/*
|
||||
echo "ScriptAlias /xcatws $(prefix)/ws/xcatws.cgi" > $(buildroot)/etc/apache2/conf.d/xcat-ws.conf
|
||||
cat $(PWD)/xCAT-wsapi/xcat-ws.conf.ubuntu >> $(buildroot)/etc/apache2/conf.d/xcat-ws.conf
|
||||
echo "ScriptAlias /xcatws $(prefix)/ws/xcatws.cgi" > $(buildroot)/etc/apache2/conf-available/xcat-ws.conf
|
||||
cat $(PWD)/xCAT-wsapi/xcat-ws.conf.ubuntu >> $(buildroot)/etc/apache2/conf-available/xcat-ws.conf
|
||||
rm -rf $(rootdir)/ws/xcat-ws.conf*
|
||||
ln -s ../conf-available/xcat-ws.conf $(buildroot)/etc/apache2/conf-enabled/xcat-ws.conf
|
||||
# dh_installmenu
|
||||
# dh_installdebconf
|
||||
# dh_installlogrotate
|
||||
|
@ -1,11 +1,11 @@
|
||||
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
|
||||
LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so
|
||||
RewriteEngine On
|
||||
RewriteCond %{SERVER_PORT} 80
|
||||
RewriteCond %{REQUEST_URI} xcatws
|
||||
RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [R,L]
|
||||
|
||||
<Files xcatws.cgi>
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
Require all granted
|
||||
</Files>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user