| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 44393 | 2004-04-17 15:38:00 | serving docs on apache | 45South (4769) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 230118 | 2004-04-17 15:38:00 | Hi Just setup Apache2/PhP/MySql etc on another machine at home for testing sites before uploading to the web. All went well, everything seems to be working fine except when I upload a site to my webroot I have to specify the page name i.e. "index" & the exact extension i.e htm or html of the index page before it will load. After entering the exact details all works fine. My query is, when accessing the site from my server on the net all I have to enter is the url eg. "whatever.co.nz" but on my local server I would have to type "http: Is there something I have missed in apaches .conf? or is it something else I haven't configured correctly? Thanks |
45South (4769) | ||
| 230119 | 2004-04-17 20:57:00 | what operating systym is this? | ilikelinux (1418) | ||
| 230120 | 2004-04-17 22:19:00 | Hi, I've set it up on an XP home machine |
45South (4769) | ||
| 230121 | 2004-04-18 02:05:00 | Hello 45South :) I dont know if thing have change in the version 2 of Apache for windows (I am only running Apache 1.3.28 for windows) for where HTML files etc... Are meant to go, but have you look to see if the files are in \htdocs? Sorry for the silly question. |
stu120404 (268) | ||
| 230122 | 2004-04-18 03:00:00 | That's the exact behaviour required by the nature of filesystem addressing. :O When you specify a directory, there is no way an OS can assume you want a particular file. Strictly, a "No file" response is the only logical one. However. ;-) On the rule "accept most things", there is a standard configuration option which caters for the most common result wanted when someone asks for "site.domain.tld/ " which is a home page of it's the top level directory of the web site (" -- which ir really required by the syntax, too) . a server will normally give you "index.html, or default.html, or in the case that there isn''t any file called by one of those names, it might even generate a directory listing page and send that. Find the apache.conf file. Read the comments and you will find the line to un-comment to enable this option. You'll need to restart the server (or HUP it if it's running under a *nix) to get it to read the new configurartion. |
Graham L (2) | ||
| 230123 | 2004-04-18 06:38:00 | Thanks all, got it sorted. Can now just ask for whatever.lo.nz & I get the index page no matter if it is named htm or html. I played around with .conf till I got it right. Cheers |
45South (4769) | ||
| 1 | |||||