Cycling and bicycle discussion forums. 
   Click here to join our community Log in to access your Control Panel  


Go Back   > >

Foo Off-Topic chit chat with no general subject.

User Tag List

Reply
 
Thread Tools Search this Thread
Old 05-26-05, 02:56 PM   #1
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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
phantomcow2 is offline   Reply With Quote
Old 05-26-05, 03:21 PM   #2
Csson
Ready to go anywhere
 
Csson's Avatar
 
Join Date: Sep 2001
Location: .se
Bikes:
Posts: 313
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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 .
Csson is offline   Reply With Quote
Old 05-26-05, 03:25 PM   #3
Stacey
Non Tribuo Anus Rodentum and off to the next adventure (RIP)
 
Stacey's Avatar
 
Join Date: Dec 2002
Bikes:
Posts: 9,162
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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.
Stacey is offline   Reply With Quote
Old 05-26-05, 03:28 PM   #4
citizen560
Beamish enthusiast
 
Join Date: Apr 2005
Location: Libertyville, IL
Bikes: '87 Trek 560 Pro Series (Reynolds 531 goodness)
Posts: 163
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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.
citizen560 is offline   Reply With Quote
Old 05-26-05, 03:50 PM   #5
linux_author
370H-SSV-0773H
 
linux_author's Avatar
 
Join Date: May 2005
Location: Penniless Park, Fla.
Bikes: Merlin Fortius, Specialized Crossroads & Rockhopper, Serotta Fierte, Pedal Force RS2
Posts: 2,750
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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!
linux_author is offline   Reply With Quote
Old 05-26-05, 03:56 PM   #6
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
ugh. THis is starting to make me question if its worth the effort
__________________
C://dos
C://dos.run
run.dos.run
phantomcow2 is offline   Reply With Quote
Old 05-26-05, 03:57 PM   #7
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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
phantomcow2 is offline   Reply With Quote
Old 05-26-05, 03:58 PM   #8
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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
phantomcow2 is offline   Reply With Quote
Old 05-26-05, 05:46 PM   #9
Stacey
Non Tribuo Anus Rodentum and off to the next adventure (RIP)
 
Stacey's Avatar
 
Join Date: Dec 2002
Bikes:
Posts: 9,162
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Hey, don't you have a paper to write?
__________________
Stacey is offline   Reply With Quote
Old 05-27-05, 02:54 PM   #10
glock17
/dev/null
 
glock17's Avatar
 
Join Date: Jan 2005
Location: Carroll, IA
Bikes: Schwinn Mtn Bike
Posts: 76
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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.
glock17 is offline   Reply With Quote
Old 05-27-05, 03:49 PM   #11
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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
phantomcow2 is offline   Reply With Quote
Old 05-27-05, 04:14 PM   #12
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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
phantomcow2 is offline   Reply With Quote
Old 05-27-05, 09:50 PM   #13
pedex 
dystopian member
 
pedex's Avatar
 
Join Date: Mar 2004
Bikes:
Posts: 5,357
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 8 Post(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
pedex is offline   Reply With Quote
Old 05-28-05, 05:57 AM   #14
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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
phantomcow2 is offline   Reply With Quote
Old 05-28-05, 07:06 AM   #15
linux_author
370H-SSV-0773H
 
linux_author's Avatar
 
Join Date: May 2005
Location: Penniless Park, Fla.
Bikes: Merlin Fortius, Specialized Crossroads & Rockhopper, Serotta Fierte, Pedal Force RS2
Posts: 2,750
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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...

:-)
linux_author is offline   Reply With Quote
Old 05-28-05, 09:58 PM   #16
pedex 
dystopian member
 
pedex's Avatar
 
Join Date: Mar 2004
Bikes:
Posts: 5,357
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 8 Post(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.
pedex is offline   Reply With Quote
Old 06-01-05, 05:25 PM   #17
rykoala
Senior Member
 
rykoala's Avatar
 
Join Date: May 2004
Bikes:
Posts: 2,013
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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.
rykoala is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 10:57 AM.