Find the answer to your Linux question:
Results 1 to 5 of 5
hello, setting up my first home server here. i can access apache server on my local network fine, but port 80 is blocked by my isp, so I cant access ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    24

    Apache 404 error when port is changed


    hello,

    setting up my first home server here. i can access apache server on my local network fine, but port 80 is blocked by my isp, so I cant access it from outside my lan. so i added
    listen 8080
    to port.conf
    then i forwarded the port in my router. when i try to access the site from outside my lan, i get

    404
    The requested URL / was not found on this server.
    Apache/2.2.12 (Ubuntu) Server


    am i missing a step here?
    what can i do to get this to work?

    thanks,

    strax

  2. #2
    Just Joined!
    Join Date
    Feb 2009
    Posts
    54
    Did you restart apache after changing the port? Is it listening on port 8080?

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Posts
    24
    i did restart apache. the 404 error page references ubuntu and apache, so I assume apache is listening. i dont know why apache delivers something different on port 80. shouldnt i get the same thing served on both ports?

    thanks.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    Is apache running virtualhosts? If you have virtualhosts setup that are on port 80, then they will not be served unless you change it to a wildcard or to port 8080 in your case.
    linux user # 503963

  6. #5
    Just Joined!
    Join Date
    Feb 2007
    Posts
    24
    Yes, apache is running virtual hosts on port 80. I have updated it(the virtual host port) and now it is working. dont know why i didnt think of that before.


    Thank you!

    stax

Posting Permissions

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