<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://buffalo.nas-central.org/w/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Run a second instance of httpd on an alternate port - Revision history</title>
		<link>http://buffalo.nas-central.org/w/index.php?title=Run_a_second_instance_of_httpd_on_an_alternate_port&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.1</generator>
		<lastBuildDate>Thu, 23 May 2013 07:51:21 GMT</lastBuildDate>
		<item>
			<title>Ramuk at 20:45, 12 January 2007</title>
			<link>http://buffalo.nas-central.org/w/index.php?title=Run_a_second_instance_of_httpd_on_an_alternate_port&amp;diff=9095&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:45, 12 January 2007&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{Articles|LSPro}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;These steps will work from a stock LinkStation Pro running Apache version 1.3.&amp;nbsp; The only modifications needed are to enable telnet and root access. You will need to be able to edit text files and scripts. I used vi that was built into the firmware.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;These steps will work from a stock LinkStation Pro running Apache version 1.3.&amp;nbsp; The only modifications needed are to enable telnet and root access. You will need to be able to edit text files and scripts. I used vi that was built into the firmware.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 55:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;add &amp;lt;nowiki&amp;gt;httpd2.sh&amp;lt;/nowiki&amp;gt; to Step 3 of &amp;lt;nowiki&amp;gt;/etc/init.d/rcS&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;add &amp;lt;nowiki&amp;gt;httpd2.sh&amp;lt;/nowiki&amp;gt; to Step 3 of &amp;lt;nowiki&amp;gt;/etc/init.d/rcS&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{Stubs}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2013-05-23 01:21:42 --&gt;
&lt;!-- diff cache key nascentral_wiki-mwiki_:diff:version:1.11a:oldid:9090:newid:9095 --&gt;
&lt;/table&gt;</description>
			<pubDate>Fri, 12 Jan 2007 20:45:32 GMT</pubDate>			<dc:creator>Ramuk</dc:creator>			<comments>http://buffalo.nas-central.org/wiki/Talk:Run_a_second_instance_of_httpd_on_an_alternate_port</comments>		</item>
		<item>
			<title>Jbromer at 03:25, 11 January 2007</title>
			<link>http://buffalo.nas-central.org/w/index.php?title=Run_a_second_instance_of_httpd_on_an_alternate_port&amp;diff=9090&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;These steps will work from a stock LinkStation Pro running Apache version 1.3.  The only modifications needed are to enable telnet and root access. You will need to be able to edit text files and scripts. I used vi that was built into the firmware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Create a symbolic link for httpd2 (the new server)'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;ln –s /usr/local/apache/bin/httpd /usr/local/apache/bin/httpd2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Create new .conf and .pid files for your new server'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;cp /etc/apache/httpd.conf /etc/apache/httpd2.conf&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;cp /var/run/apache/httpd.pid /var/run/apache/httpd2.pid&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Edit your httpd2.conf file for your new server'''&lt;br /&gt;
&lt;br /&gt;
Change PidFile to &amp;lt;nowiki&amp;gt;/var/run/apache/httpd2.pid&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Change &amp;lt;nowiki&amp;gt;Port&amp;lt;/nowiki&amp;gt; to 81 or 8080 or whatever port you want this instance to use.&lt;br /&gt;
&lt;br /&gt;
Change &amp;lt;nowiki&amp;gt;ServerName&amp;lt;/nowiki&amp;gt; to your hostname&lt;br /&gt;
&lt;br /&gt;
Change &amp;lt;nowiki&amp;gt;DocumentRoot&amp;lt;/nowiki&amp;gt; to your new www directory&lt;br /&gt;
&lt;br /&gt;
Change the second &amp;lt;nowiki&amp;gt;&amp;lt;Directory&amp;gt;&amp;lt;/nowiki&amp;gt; directive  to your new www directory&lt;br /&gt;
&lt;br /&gt;
Comment out the aliases added by buffalo in the &amp;lt;nowiki&amp;gt;&amp;lt;IfModule mod_alias.c&amp;gt;&amp;lt;/nowiki&amp;gt; directive. Change the &amp;lt;nowiki&amp;gt;ScriptAlias&amp;lt;/nowiki&amp;gt; directive to point to your new cgi-bin directory if you have one.&lt;br /&gt;
&lt;br /&gt;
Everything else can stay as is…&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Now you need to get your new server launched. Apache included a nifty script: apachectl start|stop|restart, that will do this for you.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;cp /usr/local/apache/bin/apachectl /usr/local/apache/bin/apachectl2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit the path of &amp;lt;nowiki&amp;gt;PIDFILE&amp;lt;/nowiki&amp;gt; to point to &amp;lt;nowiki&amp;gt;httpd2.pid&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit the path of &amp;lt;nowiki&amp;gt;HTTPD&amp;lt;/nowiki&amp;gt; to &amp;lt;nowiki&amp;gt;&amp;quot;/usr/local/apache/bin/httpd2 -f /etc/apache/httpd2.conf&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can leave the rest alone, or you can change the echo commands below to output “httpd2” instead of httpd.&lt;br /&gt;
&lt;br /&gt;
Run &amp;lt;nowiki&amp;gt;/usr/local/apache/bin/apachectl2 start&amp;lt;/nowiki&amp;gt;, and now your server will be started.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''To get your new server to begin at boot:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;sed -e &amp;quot;s@httpd@httpd2@&amp;quot; “@apachectl@apachectl2@” /etc/init.d/httpd.sh &amp;gt; /etc/init.d/httpd2.sh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
add &amp;lt;nowiki&amp;gt;httpd2.sh&amp;lt;/nowiki&amp;gt; to Step 3 of &amp;lt;nowiki&amp;gt;/etc/init.d/rcS&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</description>
			<pubDate>Thu, 11 Jan 2007 03:25:52 GMT</pubDate>			<dc:creator>Jbromer</dc:creator>			<comments>http://buffalo.nas-central.org/wiki/Talk:Run_a_second_instance_of_httpd_on_an_alternate_port</comments>		</item>
	</channel>
</rss>