corrected/added xcat-ws.conf for ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12172 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
1554d29c0f
commit
3946f00fd5
@ -66,7 +66,7 @@ binary-arch:
|
||||
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.apache2 >> $(buildroot)/etc/apache2/conf.d/xcat-ws.conf
|
||||
cat $(PWD)/xCAT-wsapi/xcat-ws.conf.ubuntu >> $(buildroot)/etc/apache2/conf.d/xcat-ws.conf
|
||||
rm -rf $(rootdir)/ws/xcat-ws.conf*
|
||||
# dh_installmenu
|
||||
# dh_installdebconf
|
||||
|
11
xCAT-server/xCAT-wsapi/xcat-ws.conf.ubuntu
Normal file
11
xCAT-server/xCAT-wsapi/xcat-ws.conf.ubuntu
Normal file
@ -0,0 +1,11 @@
|
||||
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.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
|
||||
</Files>
|
||||
|
Loading…
Reference in New Issue
Block a user