Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Apache 404 error when port is changed


    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

    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?



  2. #2
    Did you restart apache after changing the port? Is it listening on port 8080?

  3. #3
    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?


  4. $spacer_open
  5. #4
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Western Kentucky
    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
    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!


Posting Permissions

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