Results 1 to 16 of 16

Thread: Internal web server woes

  1. #1
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts

    Internal web server woes

    Hellooooooooooooo,

    we have an internal webserver (Linux version 2.6.9-gentoo-r4) running apache2.

    This is also the Xwindow server so when users connect to the web content on it, they usually just connect to 'localhost'

    Right, so when the user tries connecting to (e.g) http://localhost/issue-tracker they get a password prompt for the 'Home Gateway' (192.168.0.254, which is the default gateway) which is odd even if it is a routing issue because the user doesn't have to authenticate to use the web.

    The same happens when you try localhosts various alias as well as its IP address. None of the pages on localhost work.

    I've tried restarting apache/mysql but no luck

    any ideas?

  2. #2
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    75 times in 56 posts
    something is pretty wrong here.

    1.) why are you forcing users to connect to an X server on a remote machine - then access the web content on the same machine via localhost - why not just let the clients access the web content in a http://webbox/issue-tracker style ? having clients launch remote X applications will put load on your server and netwok you just don't need.

    2.) Can you tell us a little more about this config - is it a box running with an ADSL modem connected to BT broad band for example, or is ia Compaq Dl380 sitting in a data center connected to the UK backbone (just so I can understand your config a little better)

    3.) what is your resolution order (should be file,dns - I'll bet it is) but its worth checking

    4.) when you "ping localhost" or "traceroute localhost" where does it go, this my show ig you have any silly alias setup that could be confusing.

    5.) do you have any .htaccess configuration or any zone/relms setup ?

    6.) is your web browsers in the X server using a proxy service, in which case the zone/prompt could be for your webserver trying to get out of the default gateway before realising localhost is actually "its self"

    Give us some more detail and we may be able to help on this
    It is Inevitable.....


  3. #3
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts
    Heya, cheers...

    1) they Xwindow because we use thin clients

    2)
    [clients]
    [server]
    [adsl modem]
    [demon internet connection]
    [internet]

    3) Files, Dns

    4) ping localhost - 127.0.0.1

    5) traceroute localhost - straight to 127.0.0.1

    6) Connection settings - direct internet connection

    cheers man

  4. #4
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    75 times in 56 posts
    ok - from one of the X clients telnet localhost 80

    then doe a

    GET index.html (or a similar page)

    see if you get a response.
    It is Inevitable.....


  5. #5
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts
    ok doing that with any file in the upmost directory works.

    Strange, on trying localhost/issue-tracker/index.php (instead of localhost/issue-tracker) it now appears to work. So im guessing im looking at something similar to .htdocs (or whatever it is for this)

    thanks again ikonia, much appreciated

  6. #6
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    75 times in 56 posts
    in the httpd.conf

    update the sections listed to look something like this
    <IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.php
    </IfModule>
    (you'll probably need to add the index.php bit)

    this but will probably be there - but check it
    AddType application/x-httpd-php .php
    that should make your problem go away.
    It is Inevitable.....


  7. #7
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts
    The IfModule part is there and including index.php.

    There is no AddType for php, but, I created a test directory with an index.html and another with index.htm and neither of these worked even though they are in the IfModule part as well

  8. #8
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    75 times in 56 posts
    they may have been added after you started apache ?

    or I think ( and this is a vague memory) you need to have directory contents listable for it to auto find index.php....but I could be way wrong there.

    the addType won't be in apache2 that was my mistake.
    It is Inevitable.....


  9. #9
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts
    Tis an odd one, directory listings are enabled (well, not disabled).

    I've only just got back to work and the other bloke is on holiday now so I've no idea what could have changed to cause this

  10. #10
    Senior Members' Member Matt1eD's Avatar
    Join Date
    Feb 2005
    Location
    London
    Posts
    2,462
    Thanks
    0
    Thanked
    0 times in 0 posts
    • Matt1eD's system
      • Motherboard:
      • MSI K9N6SGM-V GeForce 6100
      • CPU:
      • Athlon 64 LE-1620 2.41GHz
      • Memory:
      • 2 GB DDR2
      • Storage:
      • 1.25 TB
      • Graphics card(s):
      • Onboard
      • PSU:
      • eBuyer Extra Value 500W!
      • Operating System:
      • XP Pro
    Well I'm lost!!! Posting this to get in my subs.

    I'm and SBS person myself

  11. #11
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    75 times in 56 posts
    subs ?
    It is Inevitable.....


  12. #12
    Cable Guy Jonny M's Avatar
    Join Date
    Jul 2003
    Location
    Loughborough Uni
    Posts
    4,263
    Thanks
    0
    Thanked
    4 times in 1 post
    SBS, Microsoft Small Business Server.

    And it's delish.

  13. #13
    Senior Members' Member Matt1eD's Avatar
    Join Date
    Feb 2005
    Location
    London
    Posts
    2,462
    Thanks
    0
    Thanked
    0 times in 0 posts
    • Matt1eD's system
      • Motherboard:
      • MSI K9N6SGM-V GeForce 6100
      • CPU:
      • Athlon 64 LE-1620 2.41GHz
      • Memory:
      • 2 GB DDR2
      • Storage:
      • 1.25 TB
      • Graphics card(s):
      • Onboard
      • PSU:
      • eBuyer Extra Value 500W!
      • Operating System:
      • XP Pro
    subscriptions

  14. #14
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    75 times in 56 posts
    your posting this to get your subscriptions ?

    explain, I am missing something
    It is Inevitable.....


  15. #15
    Senior Members' Member Matt1eD's Avatar
    Join Date
    Feb 2005
    Location
    London
    Posts
    2,462
    Thanks
    0
    Thanked
    0 times in 0 posts
    • Matt1eD's system
      • Motherboard:
      • MSI K9N6SGM-V GeForce 6100
      • CPU:
      • Athlon 64 LE-1620 2.41GHz
      • Memory:
      • 2 GB DDR2
      • Storage:
      • 1.25 TB
      • Graphics card(s):
      • Onboard
      • PSU:
      • eBuyer Extra Value 500W!
      • Operating System:
      • XP Pro
    To get it into my subscription so I look at it later, and can follow the thread without finding it specifically which I know I will forget to do. So if I'm subscribed to it, I can follow it, If I'm looking for reference I go into my subs and find it as search normally comes up wiht loads of stuff

  16. #16
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    75 times in 56 posts
    ahhh I see what you mean, genius.
    It is Inevitable.....


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Web server woes...
    By joshwa in forum Software
    Replies: 5
    Last Post: 16-04-2005, 09:06 AM
  2. My own web server
    By r1zeek in forum Software
    Replies: 4
    Last Post: 12-07-2004, 07:23 PM

Posting Permissions

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