Code Monkey home page Code Monkey logo

2.11bsdhttpd's Introduction

2.11BSD httpd

This web server rapidly grew into something very different and reasonably powerful. Strongly recommended that you use the later versions, which can be found on the PiDP-11 google groups. At the time of writing, the latest version is https://groups.google.com/forum/#!msg/pidp-11/nE5W6wAEIxA/7mGpfjAYAwAJ

A small, and fairly bad, web server which runs under 2.11BSD.

  • Only supports GET.
  • Will send images, add your own MIME types if you like.
  • Assumes web root is /var/www
  • Probably insecure.
  • Contributions very welcome.

If my PDP-11 is running, you can see the page it hosts at http://catbert.rhwyd.co.uk or alternative http://emubert.rhwyd.co.uk

Setup Instructions

Copy httpd.c to your PDP-11, compile it and move the binary to the proper place:

cc httpd.c -o httpd
mv httpd /usr/libexec/httpd

Append the following line to /etc/inetd.conf

http    stream  tcp     nowait  nobody  /usr/libexec/tcpd       httpd

or

http    stream  tcp     nowait  nobody  /usr/libexec/httpd      httpd

using tcpd instead of directly calling httpd (you can if you like), will allow you to user your hosts.allow file to limit access. If inetd was compiled with -DPARANOID (it probably was), it will also block hosts which have wrong reverse DNS records, which may not be desirable.

Append the following line to /etc/services

http            80/tcp

Find the process ID of inetd and send it a HUP:

ps aux | grep inetd
kill -HUP <PID>

Finally, create /var/www/index.html, along with your other files, and ensure they are readable by nobody, or world readable.

2.11bsdhttpd's People

Contributors

aaronjackson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

0un

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.