<!--
	Nonfunctional subdomains:

		- www7.acs
		- giving	(ssl_error_rx_record_too_long)
		- news		(cert: ssl; shows ssl's data)
		- v3prod.news	(ditto)
		- oncampus
		- policies	(ssl_error_rx_record_too_long)
		- web		(ditto)

-->
<ruleset name="North Carolina State University (partial)">

	<target host="libraryh3lp.com" />
		<!--
			Breaks widgets embedded on 3rd-party websites:

				https://trac.torproject.org/projects/tor/ticket/9325
										-->
		<exclusion pattern="^http://libraryh3lp\.com/(?:chat/|follow/)" />
	<target host="ncsu.edu" />
	<target host="*.ncsu.edu" />
	<target host="www.*.ncsu.edu" />
	<target host="portalsp.acs.ncsu.edu" />
	<target host="*.lib.ncsu.edu" />


	<securecookie host="^libraryh3lp\.com$" name=".*" />
	<securecookie host="^(.*\.)?ncsu\.edu$" name=".*" />


	<rule from="^http://libraryh3lp\.com/"
		to="https://libraryh3lp.com/" />

	<rule from="^https?://(?:www\.)?ncsu\.edu/directory/"
		to="https://www.ncsu.edu/directory/" />

	<rule from="^http://(portalsp\.acs|jobs|(?:(?:my|staff|www)\.)?lib|oit|ssl|webauth)\.ncsu\.edu/"
		to="https://$1.ncsu.edu/" />

</ruleset>
