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.
- 04-05-2010 #1Just 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
- 04-05-2010 #2Just Joined!
- Join Date
- Feb 2009
- Posts
- 54
Did you restart apache after changing the port? Is it listening on port 8080?
- 04-05-2010 #3Just 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.
- 04-06-2010 #4
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
- 04-06-2010 #5Just 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


Reply With Quote
