<script type="text/javascript" src="%MagicRevision:/js/editinclude.js%"></script>
<div style="width:100%;margin:20px;width:590px;">
<form action="../scripts2/editinclude" name="fmain" method="POST">
<h2>Apache Version: %apache_version%</h2>
<h2>Include File Location: %includes_directory%</h2>
<p><strong>Jump to:</strong></p>
<ul>
<li><a href="#pmi">Pre Main Include</a></li>
<li><a href="#pre">Pre Virtual Host Include</a></li>
<li><a href="#post">Post Virtual Host Include</a></li>
</ul>
<p>The text areas below allow you to add content to your Apache configuration file. "Global" includes will be used for all versions of Apache. "Versioned" include files will only be used for each respective Apache version. When adding directives that are only valid for a specific version of Apache, it is best to use the "Versioned" include files rather than the "Global".</p>
<h2 style="margin-top:35px;text-align:center;"><a name="pmi">Pre Main Include</a></h2>
<p>Entering information in this text area will add content to the top of the Apache configuration file (httpd.conf) before the main configuration section.</p>
<div id="mainselect" style="display:none;">
<p>I wish to edit the Pre Main configuration include file for:<br />
<select id="mainsel" name="mainsel" onChange="showMain();">
<option value="">Select an Apache Version</option>
<option value="version">%apache_version%</option>
<option value="all">All Versions</option>
</select>
</p>
</div>
<div id="premain1">
<div style="width:590px;margin-top:15px">
<span style="float:right;"><strong>Filename:</strong> %pre_main_global_filename%</span><strong>Global</strong>
<textarea name="pre_main_global" cols="80" rows="10">%pre_main_global%</textarea>
</div>
</div>
<div id="premain2">
!has_pre_main_1=1!
<div style="width:590px;margin-top:15px" >
<span style="float:right"><strong>Filename:</strong> %pre_main_1_filename%</span><strong>Versioned</strong>
<textarea name="pre_main_1" cols="80" rows="10">%pre_main_1%</textarea>
</div>
!has_pre_main_1!
!has_pre_main_2=1!
<div style="width:590px;margin-top:15px" >
<span style="float:right"><strong>Filename:</strong> %pre_main_2_filename%</span><strong>Versioned</strong>
<textarea name="pre_main_2" cols="80" rows="10">%pre_main_2%</textarea>
</div>
!has_pre_main_2!
<br />
</div>
<div id="premainsave">
<input type="submit" class="btn-primary" value="Update" name="update-includes" />
</div>
<h2 style="margin-top:35px;text-align:center;"><a name="pre">Pre VirtualHost Include</a></h2>
<p>Entering information in this text area will add content to the Apache configuration file (httpd.conf) right before the first VirtualHost entry.</p>
<div id="preselect" style="display:none;">
<p>I wish to edit the Pre VirtualHost configuration include file for:<br />
<select id="presel" name="presel" onChange="showPre();">
<option value="">Select an Apache Version</option>
<option value="version">%apache_version%</option>
<option value="all">All Versions</option>
</select>
</p>
</div>
<div id="prevhost1">
<div style="width:590px;margin-top:15px">
<span style="float:right;"><strong>Filename:</strong> %pre_virtualhost_global_filename%</span><strong>Global</strong>
<textarea name="pre_virtualhost_global" cols="80" rows="14">%pre_virtualhost_global%</textarea>
</div>
</div>
<div id="prevhost2">
!has_pre_virtualhost_1=1!
<div style="width:590px;margin-top:15px">
<span style="float:right"><strong>Filename:</strong> %pre_virtualhost_1_filename%</span><strong>Versioned</strong>
<textarea name="pre_virtualhost_1" cols="80" rows="14">%pre_virtualhost_1%</textarea>
</div>
!has_pre_virtualhost_1!
!has_pre_virtualhost_2=1!
<div style="width:590px;margin-top:15px" >
<span style="float:right;"><a name="pmi"><strong>Filename:</strong> %pre_virtualhost_2_filename%</span><strong>Versioned</strong>
<textarea name="pre_virtualhost_2" cols="80" rows="14">%pre_virtualhost_2%</textarea>
</div>
!has_pre_virtualhost_2!
<br />
</div>
<div id="prevhostsave">
<input type="submit" class="btn-primary" value="Update" name="update-includes" />
</div>
<h2 style="margin-top:35px;text-align:center;"><a name="post">Post VirtualHost Include</a></h2>
<p>Entering information in this text area will add content to the Apache configuration file (httpd.conf) right after the last VirtualHost entry.</p>
<div id="postselect" style="display:none;">
<p>I wish to edit the Post VirtualHost configuration include file for:<br />
<select id="postsel" name="postsel" onChange="showPost();">
<option value="">Select an Apache Version</option>
<option value="version">%apache_version%</option>
<option value="all">All Versions</option>
</select>
</p>
</div>
<div id="postvhost1">
<div style="width:590px;margin-top:15px">
<span style="float:right"><strong>Filename:</strong> %post_virtualhost_global_filename%</span><strong>Global</strong>
<textarea name="post_virtualhost_global" cols="80" rows="14">%post_virtualhost_global%</textarea>
</div>
</div>
<div id="postvhost2">
!has_post_virtualhost_1=1!
<div style="width:590px;margin-top:15px">
<span style="float:right"><strong>Filename:</strong> %post_virtualhost_1_filename%</span><strong>Versioned</strong>
<textarea name="post_virtualhost_1" cols="80" rows="14">%post_virtualhost_1%</textarea>
</div>
!has_post_virtualhost_1!
!has_post_virtualhost_2=1!
<div style="width:590px;margin-top:15px">
<span style="float:right"><strong>Filename:</strong> %post_virtualhost_2_filename%</span><strong>Versioned</strong>
<textarea name="post_virtualhost_2" cols="80" rows="14">%post_virtualhost_2%</textarea>
</div>
!has_post_virtualhost_2!
<br/>
</div>
<div id="postvhostsave">
<input type="submit" class="btn-primary" value="Update" name="update-includes" />
<input type="hidden" name="action" value="save" />
</div>
<script>hideTextAreas();</script>
</form>
</div>