mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-26 08:55:24 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			415 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			415 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| LoadModule rewrite_module /usr/lib64/apache2-prefork/mod_rewrite.so
 | |
| 
 | |
| # Redirect all http request to https
 | |
| RewriteEngine On
 | |
| RewriteCond %{SERVER_PORT} 80
 | |
| RewriteCond %{HTTPS} !=on
 | |
| RewriteRule ^/?xcatws/(.*) https://%{SERVER_NAME}/xcatws/$1 [R,L]
 | |
| RewriteRule ^/?xcatwsv2/(.*) https://%{SERVER_NAME}/xcatwsv2/$1 [R,L]
 | |
| 
 | |
| <FilesMatch "^(xcatws.cgi|zvmxcatws.cgi)$">
 | |
|     Order allow,deny
 | |
|     Allow from all
 | |
| </FilesMatch>
 | |
| 
 |