<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>httpserver &amp;mdash; Paul Sutton</title>
    <link>https://personaljournal.ca/paulsutton/tag:httpserver</link>
    <description>Personal Blog</description>
    <pubDate>Tue, 05 May 2026 16:27:16 +0000</pubDate>
    <item>
      <title>Website on pi</title>
      <link>https://personaljournal.ca/paulsutton/website-on-pi</link>
      <description>&lt;![CDATA[Website on pi&#xA;&#xA;img src=&#34;https://socialhub.activitypub.rocks/uploads/default/original/1X/6aac842b7ff5c58385a02f3a131c259281be88c8.png&#34; target=&#34;_blank&#34; &#xA;&#xA;a href=&#34;https://liberapay.com/PaulSutton/donate&#34;img alt=&#34;Donate using Liberapay&#34; src=&#34;https://liberapay.com/assets/widgets/donate.svg&#34;/a&#xA;&#xA;I spent some time on last night, setting up a mini web server on m Raspberry pi. &#xA;&#xA;So running a http server on a Raspberry Pi. &#xA;&#xA;For this project I am just using the python3-test-server package, &#xA;&#xA;Install python3-test-server&#xA;Create a directory to hold some html files&#xA;Change to this directory &#xA;Create a very basic html file e.g index.html&#xA;run python3 -m http.server:7800 where 7800 is the port you want to use&#xA;&#xA;web server on pi&#xA;&#xA;In the browser go to ip:7800&#xA;&#xA;Website on pi&#xA;&#xA;What I have done here, however is &#xA;&#xA;Run the server on the pi, &#xA;Connected via ssh to create the site files and run the server&#xA;Edited the basic website on the pi via ssh, by running a text editor&#xA;To copy other files directly from my main PC to the Pi i used&#xA;&#xA;   scp file.jpg pi@ip:path e.g&#xA;     scp file.jpg pi@ip:/home/pi/html/&#xA;&#xA;I have, gone a little further than this:&#xA;&#xA;In order to share my free software video dvd (and other resources) with people I:-&#xA;&#xA;Uploaded files to the server&#xA;Created a web link to the iso file&#xA;Edited my router firewall so it would allow a connection to the pi&#xA;&#xA;I then shared the appropriate IP address with a friend via irc so he could download the ISO file, and it worked really well.&#xA;&#xA;REFERENCES&#xA;&#xA;Free Software Foundation&#xA;&#xA;TAGS&#xA;&#xA;#YearOfTheFediverse,#httpServer,#website,#html,#css,&#xA;#Python,#Firewall,#Networking,ProblemSolving,#Skills,#IT&#xA;&#xA;a rel=&#34;license&#34; href=&#34;http://creativecommons.org/licenses/by-sa/4.0/&#34;img alt=&#34;Creative Commons Licence&#34; style=&#34;border-width:0&#34; src=&#34;https://i.creativecommons.org/l/by-sa/4.0/88x31.png&#34; //abr /This work is licensed under a a rel=&#34;license&#34; href=&#34;http://creativecommons.org/licenses/by-sa/4.0/&#34;Creative Commons Attribution-ShareAlike 4.0 International License/a&#xA;&#xA;hr&#xD;&#xA;&#xD;&#xA;table&#xD;&#xA;thead&#xD;&#xA;trtda rel=&#34;me&#34; href=&#34;https://qoto.org/@zleap&#34;Mastodon/a/td&#xD;&#xA;tda href=&#34;https://wiki.ircnow.org/?n=Shelllabs.Intro&#34;ShellLabs/td&#xD;&#xA;tda href=&#34;https://joinmastodon.org/&#34;Join Mastodon/a/td/tr/thead/table&#xD;&#xA;center&#xD;&#xA;AI statement : b Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity.  Consent CANNOT be assumed, it has to be granted. /b&#xD;&#xA;/center&#xD;&#xA;&#xD;&#xA;a href=&#34;https://liberapay.com/PaulSutton/donate&#34;img alt=&#34;Donate using Liberapay&#34; src=&#34;https://liberapay.com/assets/widgets/donate.svg&#34;/a&#xD;&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>Website on pi</p>

<p><a href="https://torresjrjr.com/archive/2020-07-19-guide-to-the-fediverse" rel="nofollow"><img src="https://socialhub.activitypub.rocks/uploads/default/original/1X/6aac842b7ff5c58385a02f3a131c259281be88c8.png"></a></p>

<p><a href="https://liberapay.com/PaulSutton/donate" rel="nofollow"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></p>

<p>I spent some time on last night, setting up a mini web server on m Raspberry pi.</p>

<p><strong>So running a http server on a Raspberry Pi</strong>.</p>

<p>For this project I am just using the python3-test-server package,</p>
<ol><li>Install python3-test-server</li>
<li>Create a directory to hold some html files</li>
<li>Change to this directory</li>
<li>Create a very basic html file e.g index.html</li>
<li>run python3 -m http.server:7800 where 7800 is the port you want to use</li></ol>

<p><img src="https://git.qoto.org/zleap/documents/-/raw/master/webserver.png" alt="web server on pi"></p>

<p>In the browser go to ip:7800</p>

<p><img src="https://git.qoto.org/zleap/documents/-/raw/master/websiteonpi.png" alt="Website on pi"></p>

<p>What I have done here, however is</p>
<ul><li>Run the server on the pi,</li>
<li>Connected via ssh to create the site files and run the server</li>
<li>Edited the basic website on the pi via ssh, by running a text editor</li>

<li><p>To copy other files directly from my main PC to the Pi i used</p>
<ul><li>scp file.jpg pi@ip:path e.g
<ul><li>scp file.jpg pi@ip:/home/pi/html/</li></ul></li></ul></li></ul>

<p>I have, gone a little further than this:</p>

<p>In order to share my free software video dvd (and other resources) with people I:-</p>
<ul><li>Uploaded files to the server</li>
<li>Created a web link to the iso file</li>
<li>Edited my router firewall so it would allow a connection to the pi</li></ul>

<p>I then shared the appropriate IP address with a friend via irc so he could download the ISO file, and it worked really well.</p>

<p><strong>REFERENCES</strong></p>
<ul><li><a href="https://www.fsf.org" rel="nofollow">Free Software Foundation</a></li></ul>

<p><strong>TAGS</strong></p>

<p><a href="/paulsutton/tag:YearOfTheFediverse" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">YearOfTheFediverse</span></a>,<a href="/paulsutton/tag:httpServer" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">httpServer</span></a>,<a href="/paulsutton/tag:website" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">website</span></a>,<a href="/paulsutton/tag:html" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">html</span></a>,<a href="/paulsutton/tag:css" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">css</span></a>,
<a href="/paulsutton/tag:Python" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Python</span></a>,<a href="/paulsutton/tag:Firewall" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Firewall</span></a>,<a href="/paulsutton/tag:Networking" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Networking</span></a>,ProblemSolving,<a href="/paulsutton/tag:Skills" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Skills</span></a>,<a href="/paulsutton/tag:IT" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">IT</span></a></p>

<p><a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="nofollow"><img alt="Creative Commons Licence" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png"/></a><br/>This work is licensed under a <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="nofollow">Creative Commons Attribution-ShareAlike 4.0 International License</a></p>

<hr>

<p><table>
<thead>
<tr><td><a href="https://qoto.org/@zleap" rel="nofollow">Mastodon</a></td>
<td><a href="https://wiki.ircnow.org/?n=Shelllabs.Intro" rel="nofollow">ShellLabs</td>
<td><a href="https://joinmastodon.org/" rel="nofollow">Join Mastodon</a></td></tr></thead></table>

AI statement : <b> Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity.  Consent CANNOT be assumed, it has to be granted. </b>
</p>

<p><a href="https://liberapay.com/PaulSutton/donate" rel="nofollow"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></p>
]]></content:encoded>
      <guid>https://personaljournal.ca/paulsutton/website-on-pi</guid>
      <pubDate>Mon, 18 Jan 2021 07:00:00 +0000</pubDate>
    </item>
  </channel>
</rss>