<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[[Info] How to include domain-specific Apache configuration directives into web server configuration file?]]></title>
<link>http://kb.parallels.com/en/5464</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">[Info] How to include domain-specific Apache configuration directives into web server configuration file?</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 5464&nbsp;</div>
					<div>Last Review: Jul,3 2009</div>
					<tr>
						<td>Author: </td>
						<td>Vitaly Malakhov</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>system</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Plesk 8.x for Linux/Unix</li>
							<li>Plesk 9.x for Linux/Unix</li>
						</ul>
					</div>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Resolution</h2>
					<p>You can include domain-specific Apache configuration directives into web server configuration file. In Parallels Plesk Panel each domain has virtual hosts configuration stored in a separate file <span style="font-family: Courier New;">httpd.include</span>.</p> <p>On all Linux systems, this file is located in the directory <span style="font-family: Courier New;">/var/www/vhosts/&lt;domain-name&gt;/conf/</span><em>.</em></p> <p>On FreeBSD systems, this file is located in the directory <span style="font-family: Courier New;">/usr/local/www/vhosts/&lt;domain-name&gt;/conf/.</span></p> <p>If you upgraded from Plesk version 7.5.4 or earlier, try looking for this file in the directory <span style="font-family: Courier New;">/home/httpd/vhosts/&lt;domain-name&gt;/conf/</span> or <span style="font-family: Courier New;">/usr/local/psa/home/vhosts/&lt;domain-name&gt;/conf/</span>.</p> <p><strong>Note:</strong> you can change the location of virtual host directories using the <strong>transvhosts.pl</strong> utility, which is located either in <span style="font-family: Courier New;">/usr/local/psa/bin/</span> or <span style="font-family: Courier New;">/opt/psa/bin/ </span>directory, depending on your operating system.</p> <p>This file is overwritten each time the virtual host configuration is changed, thus any manual alterations made to the file are discarded. To use custom directives or redefine those inserted by Plesk, you need to create the files <strong>vhost.conf</strong> and/or <strong>vhost_ssl.conf</strong> with necessary directives in the directory <span style="font-family: Courier New;">/path_to_vhosts/&lt;domain-name&gt;/conf/</span> for a domain, and <span style="font-family: Courier New;">/path_to_vhosts/&lt;domain-name&gt;/subdomains</span><span style="font-family: Courier New;">/&lt;subdomain-name&gt;/conf/</span> for a subdomain.</p> <p>If any of these files exist by the time the main configuration file is generated, Plesk inserts the appropriate Include directive into the HTTP and/or HTTPS virtual host context respectively. For security reasons, only root can create the <strong>vhost.conf</strong> and <strong>vhost_ssl.conf</strong> files.</p>   <p>For the changes to take effect, you need to run the following command:<br /><div class="commandline"><code><a href="http://kb.parallels.com../en/952">PRODUCT_ROOT_D</a>/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=&lt;domain_name&gt;</code></div></p>
				</div>
				<div class="article-part">
					<h2>Additional information</h2>
					Below you can find some examples of using virtual host configuration file:<br /><br /><a href="http://kb.parallels.com../en/432">I am getting &quot;open_basedir&quot; error in PHP script</a><br /><br /><a href="http://kb.parallels.com../en/5483">How to enable 'register_globals' for domain in Plesk?</a><br /><br /><a href="http://kb.parallels.com../en/437">How to enable directory indexing for domain?</a><br /><br /><a href="http://kb.parallels.com../en/2239">How to create wildcard subdomain?</a><br /><br /><a href="http://kb.parallels.com../en/1575">How do I setup .JSP pages to run from domain's DocumentRoot directory?</a><br /><br /><a href="http://kb.parallels.com../en/955">How do I setup all subdomains *.domain.tld to point to a domain domain.tld?</a>
				</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=5464&ArticleLanguage=en&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=5464&ArticleLanguage=en&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '5464',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<author>Vitaly Malakhov</author>
<guid isPermaLink="false">5097 LastUpdated: 2009-07-03 12:38:04</guid>
<pubDate>2008-07-10 05:49:43</pubDate>
</item>
</channel>
</rss>



