[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Mon, 14 May 2007 08:48:19 +0100 Simon Williams <simon@xxxxxxxxxxxxxxxxxxx> wrote: > Think of it in the same way as the server for you web site, because > actually it _is_ the same. > > The server for your website has a directory tree in which you place > files. This tree is then reproduced at www.yourdomain.com. > > In the same way, your local version of apache hasn't been told about any > domains, so is using the default settings, which are to listen to every > available interface and serve all pages from the directory > /var/www/apache2-default. > > So if you place hello.php in /var/www/apache2-default, you will then be > able to go to http://localhost/hello.php or http://127.0.0.1/hello.php > or http://[ip address or hostname of your machine]/hello.php and you > will get the same thing. > > (Though the php parts of the pages will be ignored if php is disabled). > > Hope this helps. > Simon I tried that and got a not found error ******************** Not Found The requested URL /hello.php was not found on this server. Apache/2.0.55 (Ubuntu) PHP/5.1.6 Server at 127.0.0.1 Port 80 ******************** I have double checked and hello.php is indeed in the folder /var/www/apache2-default Have I missed anything please Neil Winchurst -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html