Advertise on Bikeforums.net



User Tag List

Results 1 to 17 of 17
  1. #1
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Apache servers, quick installation help

    Okay i have my own little apache server to be coming along. http://192.168.2.4/ is the url. IM trying to get an index here, but all i get is that parent directory. I put a file called index.html in the htdocs folder (i figure thats where it is that i need to put it) but all i get is that parent directory still. I Must be missing something painfully obvious, can somebody tell me what?
    C://dos
    C://dos.run
    run.dos.run

  2. #2
    Ready to go anywhere Csson's Avatar
    Join Date
    Sep 2001
    Location
    .se
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you find it at http://192.168.2.4/index.html ? If so, there is another file in that directory with higher "priority" (what other files are in that directory?). If not so (or if all you're getting is a directory listing), you put the file in the wrong directory .
    Two roads diverged in a wood, and I-
    I took the one less travelled by,
    And that has made all the difference.
    (R. Frost)

  3. #3
    Non Tribuo Anus Rodentum and off to the next adventure (RIP) Stacey's Avatar
    Join Date
    Dec 2002
    Posts
    9,163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm by far no network or server expert. But, from my own adventures setting up my LAN,I believe that 192.168.x.x, is a 'reserved' (pardon if wrong terminology) Local address.

    That if you had four stations on a LAN they would be addressed consecutivly... 192.168.0.0 through 192.168.0.3 Your ...2.4 above, looks to me to be a local address
    Last edited by Stacey; 05-26-05 at 03:43 PM.

  4. #4
    Beamish enthusiast
    Join Date
    Apr 2005
    Location
    Libertyville, IL
    My Bikes
    '87 Trek 560 Pro Series (Reynolds 531 goodness)
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You may need to edit your configuration file to define the "index" file (it's not always index.html by default). Also, you're pointing us to a LAN address, not accessible from the outside. Try accessing it yourself using your actual IP, not your network IP - depending on how you've configured that apache server, that may be the trigger.
    So very poor...

  5. #5
    370H-SSV-0773H linux_author's Avatar
    Join Date
    May 2005
    Location
    Penniless Park, Fla.
    My Bikes
    Merlin Fortius, Specialized Crossroads & Rockhopper, Serotta Fierte, Pedal Force RS2
    Posts
    2,760
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    your IP is for the local LAN i see...

    Apache's configuration file defines the precise location of the 'home' page and directory...

    you don't say what version of Apache you're using, nor what platform... older versions of Apache under the Red Hat, then Fedora Linux distros installed the home page directory (and index.html) under /var/www/html...

    this has changed recently as a default... but you should as a matter of course, examine your system's httpd config file (under Fedora Core, the file, httpd.conf, will be found under /etc/httpd/conf... the setting you're looking for is:

    DocumentRoot "/var/www/html"

    which, in this case, defines the home page directory....

    on the other hand, if you're setting up a system for each user to be able to use a home page, you'll need to define those settings globally in httpd.conf...

    hope this helps!

    Linux(tm): It's All Good!

  6. #6
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ugh. THis is starting to make me question if its worth the effort
    C://dos
    C://dos.run
    run.dos.run

  7. #7
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay well if i try to enter my IP address in the url bar it just comes out with the Belkin 4 port router screen where i can go and change settings etc.
    C://dos
    C://dos.run
    run.dos.run

  8. #8
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by linux_author
    your IP is for the local LAN i see...

    Apache's configuration file defines the precise location of the 'home' page and directory...

    you don't say what version of Apache you're using, nor what platform... older versions of Apache under the Red Hat, then Fedora Linux distros installed the home page directory (and index.html) under /var/www/html...

    this has changed recently as a default... but you should as a matter of course, examine your system's httpd config file (under Fedora Core, the file, httpd.conf, will be found under /etc/httpd/conf... the setting you're looking for is:

    DocumentRoot "/var/www/html"

    which, in this case, defines the home page directory....

    on the other hand, if you're setting up a system for each user to be able to use a home page, you'll need to define those settings globally in httpd.conf...

    hope this helps!

    Linux(tm): It's All Good!
    Windows XP proff.
    Apache 2.0
    C://dos
    C://dos.run
    run.dos.run

  9. #9
    Non Tribuo Anus Rodentum and off to the next adventure (RIP) Stacey's Avatar
    Join Date
    Dec 2002
    Posts
    9,163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, don't you have a paper to write?

  10. #10
    /dev/null glock17's Avatar
    Join Date
    Jan 2005
    Location
    Carroll, IA
    My Bikes
    Schwinn Mtn Bike
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Stacey
    Hey, don't you have a paper to write?
    +1

    he is just trying to test the server using the 192.168.x.x addresses, after the server is up and running then we can move on to port forwarding the router.
    the directive you are looking for in you httpd.conf file is DirectoryIndex

    I've set up enough apache servers that sometimes i dream about them. they were all on linux though. works similar.

    there is another thread here started by you (author) that is almost exactly the same as this thread. I give up.

  11. #11
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by glock17
    +1

    he is just trying to test the server using the 192.168.x.x addresses, after the server is up and running then we can move on to port forwarding the router.
    the directive you are looking for in you httpd.conf file is DirectoryIndex

    I've set up enough apache servers that sometimes i dream about them. they were all on linux though. works similar.

    there is another thread here started by you (author) that is almost exactly the same as this thread. I give up.
    Well ive never done this so what i see as two separate problems requiring two separate threads may seem like a stupidly easy requiring no new thread problem. I had this explained by a friend at school today and it makes pretty good sense now, im just trying to activate Port forwarding here. If i enter my IP address in the url bar it comes with the "configure Belkin router settings". I know this is because of the lack of port forwarind but when i try to activate it it still does that same thing so im going to call them up
    C://dos
    C://dos.run
    run.dos.run

  12. #12
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay well according to them its working. Now heres my question, what is involved in adding a php script? Do i need to edit or download things? ANd what about java applications
    C://dos
    C://dos.run
    run.dos.run

  13. #13
    Senior Member
    Join Date
    Mar 2004
    Posts
    5,361
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)
    http://www.apache.org

    when in doubt read the manual

    also, you can test it without even having a net connection, it listens on port 80 by default for http requests, so http://localhost or http://127.0.0.1 should cause it to return the http request even without a net connection using the loopback

  14. #14
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    okay ive looked over hte apache website several times and i sitll cant find a straight forward answer. I want index.html to be automatically displayed like a normal website. When i go to this forum the first thing that pops up is the screen we know very well. It isnt just some parent directory with folders for bicycle mechanics, mountain biking, foo, etc.
    C://dos
    C://dos.run
    run.dos.run

  15. #15
    370H-SSV-0773H linux_author's Avatar
    Join Date
    May 2005
    Location
    Penniless Park, Fla.
    My Bikes
    Merlin Fortius, Specialized Crossroads & Rockhopper, Serotta Fierte, Pedal Force RS2
    Posts
    2,760
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pedex
    http://www.apache.org

    when in doubt read the manual

    also, you can test it without even having a net connection, it listens on port 80 by default for http requests, so http://localhost or http://127.0.0.1 should cause it to return the http request even without a net connection using the loopback
    - excellent advice... of course this won't work under Linux unless networking is enabled (believe it or not, there are folks that run Linux boxen with no networking!) ... dunno about Windoze, as i've been Microsoft-free since 1994...

    :-)

  16. #16
    Senior Member
    Join Date
    Mar 2004
    Posts
    5,361
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by linux_author
    - excellent advice... of course this won't work under Linux unless networking is enabled (believe it or not, there are folks that run Linux boxen with no networking!) ... dunno about Windoze, as i've been Microsoft-free since 1994...

    :-)
    Ya im windows free too, and have been for a long time

    PhantomCow, honestly im not sure what the problem is, If I recall correctly there is a setting in the httpd.conf file that does set what the default filetype to be served up as an index is, but im not 100% certain, I know it has a whole bunch of settings to sift thru, but its usually very well commented.

    You might be better served asking on a linux forum quit honestly, only problem is Im not sure how much difference there is tween the winblows and *nix version of apache.

  17. #17
    Senior Member rykoala's Avatar
    Join Date
    May 2004
    Posts
    2,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the httpd.conf file there has to be a "directoryindex" directive. It looks like this on my server:

    DirectoryIndex index.html index.html.var index.shtml index.php

    That is what tells apache to autoload an index page. Well, that and a loadable module that is loaded by default.

    Disclaimer: I'm running linux, I haven't tried Apache 2.0 for Win32 before. The httpd.conf should be the same though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •