Change the configuration file of xcat-ws to fit both rh and sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11367 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ca091c84b2
commit
5420622ea2
@ -1,5 +0,0 @@
|
||||
LoadModule ssl_module /etc/httpd/modules/mod_ssl.so
|
||||
RewriteEngine On
|
||||
RewriteCond %{SERVER_PORT} 80
|
||||
RewriteCond %{REQUEST_URI} xcatws
|
||||
RewriteRule ^(.*)$ https://${HOSTNAME}$1 [R,L]
|
11
xCAT-server/xCAT-wsapi/xcat-ws.conf.apache2
Normal file
11
xCAT-server/xCAT-wsapi/xcat-ws.conf.apache2
Normal file
@ -0,0 +1,11 @@
|
||||
LoadModule rewrite_module /usr/lib64/apache2-prefork/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>
|
||||
|
4
xCAT-server/xCAT-wsapi/xcat-ws.conf.httpd
Normal file
4
xCAT-server/xCAT-wsapi/xcat-ws.conf.httpd
Normal file
@ -0,0 +1,4 @@
|
||||
RewriteEngine On
|
||||
RewriteCond %{SERVER_PORT} 80
|
||||
RewriteCond %{REQUEST_URI} xcatws
|
||||
RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [R,L]
|
Loading…
Reference in New Issue
Block a user