Problem with server

Discussion in 'Site & Server Administration' started by Arkidas, Jul 18, 2008.

  1. #1
    Ok, I've installed apache, PHP, MYSQL and vbulletin and I can access it fine via http://localhost. I set my router's port to :8080 ( from :80 ) and I can access it from anywhere with external IP or my domain by adding :8080 to them. I've opened port 80 in NAT but I still can't accesss my vbulletin forum through my external IP or domain but only through localhost.

    What's wrong?
     
    Arkidas, Jul 18, 2008 IP
  2. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You have set 80 in NAT, have you changed the settings in your http configuration file? Most likely it is still taking 8080.
     
    mellow-h, Jul 18, 2008 IP
  3. Arkidas

    Arkidas Member

    Messages:
    216
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    I don't think you quite understand what I mean.

    I had to change my router's server port from 80 to 8080 so my domain wouldn't forward to the router login screen. Then I opened port 80 to allot HTTP. Now I can access my router's login screen by going to domain.com:8080 but when I go to domain.com, nothing comes up. I'm really lost, I have no idea what's wrong.
     
    Arkidas, Jul 18, 2008 IP
  4. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, i believe you misunderstand what i meant :) You apache is not being able to take 80 as the default port (Most likely because your router is not allowing to). You can simply change this value to 8080 and allow http://domain.com to take 8080 port from your apache configuration file by changing 80 port to 8080. That way, you can access your apache using 8080 or without anything.
     
    mellow-h, Jul 18, 2008 IP
  5. Arkidas

    Arkidas Member

    Messages:
    216
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #5
    But isn't port 80 for HTTP globally?
    I have ServerName set to #ServerName www.domain.com:80 ( I tried uncommenting )
     
    Arkidas, Jul 18, 2008 IP
  6. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yeah, but this can be changed to a manual port if needed.
     
    mellow-h, Jul 18, 2008 IP
  7. Arkidas

    Arkidas Member

    Messages:
    216
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #7
    I don't understand why my router shouldn't allow it ( I'm doing this for the first time though :p ) since I've opened port 80 in NAT. So you're saying I should set the router's server port back to 80 and set apache's port to 880? But then when I go to domain.com I will go to the router login, right? ( Since port 80 is the HTTP port ).
     
    Arkidas, Jul 18, 2008 IP
  8. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I m basically saying to simply set the port of apache to 8080. Your router is already routing correctly i believe. Your apache now need to recognize 8080 port as a http request.
     
    mellow-h, Jul 18, 2008 IP
  9. Arkidas

    Arkidas Member

    Messages:
    216
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #9
    Arkidas, Jul 18, 2008 IP
  10. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Correct! Do these changes and restart your web server.
     
    mellow-h, Jul 18, 2008 IP
  11. Arkidas

    Arkidas Member

    Messages:
    216
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #11
    Ok, I changed server port ( router port ) back to 80 and set Listen and ServerName in apache to 8080. It's the same, now when anyone goes to domain.com or myipaddress.com a login screen for my router comes up but nothign comes up if :8080 is added ( apache ).
     
    Arkidas, Jul 19, 2008 IP
  12. Arkidas

    Arkidas Member

    Messages:
    216
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #12
    It's all good now. I just had to open port 80 in Windows Firewall.
     
    Arkidas, Jul 19, 2008 IP
  13. hostingspeak

    hostingspeak Peon

    Messages:
    233
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #13
    That firewall can get ya :)
     
    hostingspeak, Jul 19, 2008 IP