2009/9/16 Aidan Gauland <[email protected]>: > I want to set up a server for fun and education. That would be easy, if I > did not want it to only be accessable from the host system (my general-use > machine). So for example, if it was a web server, a URL for a page on it > may be <http://sanitarium/nuts.html>; I guess that I would setup an > interface called "sanitarium" and point Qemu (or similar) to it? (Oh sure, > *that* will be easy.) Has anyone done anything like this? Or rather, can > anyone help me with this?
Hi Adrian Your details are a little sketchy. I understand you're interested in setting up a web server, to have a play around. If that's not right, stop reading now, and let us know what you really meant. I'd suggest installing Apache's httpd. On most distributions, it'll be called "apache" or "apache2" (or "httpd" on some others). You can install it the same way you'd install any other application. Fire it up, with its default configuration, and see how you get on. Usually, it'll default to listening on port 80, so you should be able to point a web browser at http://127.0.0.1/ or http://localhost/. You mentioned restricting access to your local machine. To do this, change the default Listen line in the config for: Listen 127.0.0.1:80 and restart the daemon. This will bind it to the loop-back interface, so shouldn't be accessible from outside your box. You can put your web site in /var/www/localhost/htdocs (or similar, the path differs for different distributions). See how you get on with that much, and let us know. :) Dan
