Apache config

This is a discussion on Apache config within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I have been messing around with Apache recently but I am really stuck on how to get apache to go ...

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    266

    Apache config

    I have been messing around with Apache recently but I am really stuck on how to get apache to go beyond my computer. I installed and started apache and when I went to localhost I got the message "It works!". The only problem is the computer with Apache on it is the only one able to display that message. Any other computer will not load the page. Is there a configuration option that needs to be set that tells Apache to respond to my global IP?
    Fried chicken for everybody!
    -Kernel Sanders

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Look for the "Listen" directive, it tells you the IPs to which Apache binds. If it only binds to localhost (127.0.0.1) only local users can access the server.
    Also, make sure that you don't have a firewall blocking port 80 on the computer.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    Quote Originally Posted by CornedBee View Post
    Look for the "Listen" directive, it tells you the IPs to which Apache binds. If it only binds to localhost (127.0.0.1) only local users can access the server.
    Also, make sure that you don't have a firewall blocking port 80 on the computer.
    Thanks! Ill post back the results in a minute(although I expect it to work).
    Fried chicken for everybody!
    -Kernel Sanders

  4. #4
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    I didn't even find a Listen directive in the config. Am I looking in the right file(/etc/apache2/apache2.conf)? Most tutorials say the main configuration file is httpd.conf, but that was empty and the next best candidate seemed to be apache2.conf.

    edit: I found it. It was in ports.conf and the Listen directive was set for port 80 and not just localhost so that can't be the problem.
    Last edited by lruc; 01-19-2009 at 09:05 AM.
    Fried chicken for everybody!
    -Kernel Sanders

  5. #5
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,648
    Firewalls, DNS, routers...any of these could be interfering with the client connection to the webserver. What OS is Apache running on?

  6. #6
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    Ubuntu(not server edition). Is it better to run directly from modem instead of using a router? How do you tell if a firewall is running?
    Fried chicken for everybody!
    -Kernel Sanders

  7. #7
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    Fried chicken for everybody!
    -Kernel Sanders

  8. #8
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,167
    works here.

  9. #9
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,470
    root and Pnk Floyd pages - rest is not found
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  10. #10
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    Quote Originally Posted by vart View Post
    root and Pnk Floyd pages - rest is not found
    Sorry forgot to mention the expected output. I will be using it to host my music collection across some computers. What did you mean about the root part?
    Fried chicken for everybody!
    -Kernel Sanders

  11. #11
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    A link to pink floyd stuff, I guess songs, but then I go deeper it ends empty :P and I've never got apache to work, it's a pain in the ass! xD
    Currently research OpenGL

  12. #12
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    Quote Originally Posted by Akkernight View Post
    A link to pink floyd stuff, I guess songs, but then I go deeper it ends empty :P and I've never got apache to work, it's a pain in the ass! xD
    Well, somebody is not a fan. Phhhh. Songs. One of the band members would have killed you if they heard you say that.
    Fried chicken for everybody!
    -Kernel Sanders

  13. #13
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,648
    Quote Originally Posted by lruc View Post
    One of the band members would have killed you if they heard you say that.
    Sadly, if it was Richard Wright, he needn't worry...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. config file interface
    By valis in forum C Programming
    Replies: 3
    Last Post: 08-17-2006, 09:30 PM
  2. Parsing config file in C++
    By Dynamo in forum C++ Programming
    Replies: 12
    Last Post: 09-01-2005, 11:21 AM
  3. Apache help
    By RoD in forum Tech Board
    Replies: 2
    Last Post: 10-17-2004, 07:37 PM
  4. knoppix config file
    By sentienttoaster in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 01-17-2004, 08:23 PM
  5. Apache [2.xxx] and PHP [4.xxx]
    By Wondering_Guy in forum Tech Board
    Replies: 12
    Last Post: 01-19-2003, 01:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21