<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Zendcasts Forum / Server configuration]]></title>
		<link>http://www.zendcasts.com/forum/viewtopic.php?id=136</link>
		<description><![CDATA[The most recent posts in Server configuration.]]></description>
		<lastBuildDate>Wed, 10 Feb 2010 11:14:22 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Server configuration]]></title>
			<link>http://www.zendcasts.com/forum/viewtopic.php?pid=619#p619</link>
			<description><![CDATA[<p>Hi all,</p><p>Im building a site where i want everything except the index controller to be behind https but have no idea how to go about it in my htaccess or virtualhost configuration. </p><p>At the moment i just have everything requiring to use SSL with my port 80 virtual host redirecting everything to port 443</p><div class="quotebox"><blockquote><div><p>RewriteEngine On<br />RewriteCond %{SERVER_PORT} 80<br />RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [R,L]</p></div></blockquote></div><p>and my 443 virtual host requring SSL<br /></p><div class="quotebox"><blockquote><div><p>SSLEngine on<br />SSLCertificateFile /path/to/apache.crt<br />SSLCertificateKeyFile /path/to/apache.key</p></div></blockquote></div><p>they both have the same base directory config<br /></p><div class="quotebox"><blockquote><div><p>&lt;Directory &quot;/path/to/website/public&quot;&gt;<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Options -Indexes FollowSymLinks MultiViews<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; AllowOverride All<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Order allow,deny<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; allow from all<br />&lt;/Directory&gt;</p></div></blockquote></div><p>and the site itself has a bog standard .htaccess file<br /></p><div class="quotebox"><blockquote><div><p>RewriteEngine on<br />RewriteRule !(.html|.htm|.xml|.js|.ico|.gif|.jpg|.png|.css|.pdf|.ini)$ index.php</p></div></blockquote></div><p>yet i have no idea how id go about adjusting the setup to allow for <a href="http://www.mysite.com/index/{indexActions}">www.mysite.com/index/{indexActions}</a> to be allowed through http only and everywhere else to be available through https only, the reason being that ive set up a Certificate authority and only want certain people to whom ive distributed a certificate to have access to &#039;everywhere else&#039;</p><p>i hope you guys can help out, if you need more detail let me know!</p><p>Thanks in advance <img src="http://www.zendcasts.com/forum/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Talv)]]></author>
			<pubDate>Wed, 10 Feb 2010 11:14:22 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/viewtopic.php?pid=619#p619</guid>
		</item>
	</channel>
</rss>

