logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Hardware & Networking View previous topic :: View next topic
Reply to topic   Topic: Website shows on all Lan devices, but not externally
Author
RT-XD



Joined: 16 Jul 2014
Posts: 10
Location: UK

PostPosted: Wed 16 Jul '14 19:17    Post subject: Website shows on all Lan devices, but not externally Reply with quote

Hi all,

I am a complete newbie to apache and web hosting. So if I miss anything, please just ask and I'll do my best to provide the information.

As the title says: I can view the website I've created just fine on LAN devices, but when trying to connect from outside, people get a blank page. No errors or connection problems - just a blank white page.

I've seen others have this issue - but could not see a solution. Or at least, could not understand the solutions that were given.

Apache version: 2.4.9
OS: windows server 2008

I hope someone knows the solution - I would really like to know how to fix this!

Thanks in advanced.

--RT
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Wed 16 Jul '14 19:27    Post subject: Reply with quote

Have you tried disabling any firewalls and such?
Back to top
RT-XD



Joined: 16 Jul 2014
Posts: 10
Location: UK

PostPosted: Wed 16 Jul '14 19:33    Post subject: Reply with quote

Thanks for the quick reply
Yes - I've disabled the router firewall and the windows firewall to test this out.

Although, preferably I would like to keep it on when the website is working XD
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Wed 16 Jul '14 23:01    Post subject: Reply with quote

Did it work when the firewall was disabled? If so its an issue with your firewall configuration. If not it's something else.

Perhaps the Apache server isn't listening on the external IP's
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Thu 17 Jul '14 8:55    Post subject: Reply with quote

RT-XD wrote:
Although, preferably I would like to keep it on when the website is working XD


As a minimum firewall configuration you should add an incoming rule which allows traffic to the apache application on port 80 (443) for the public net.
Back to top
RT-XD



Joined: 16 Jul 2014
Posts: 10
Location: UK

PostPosted: Thu 17 Jul '14 11:31    Post subject: Reply with quote

Thanks Smile

I've added incoming rules to allow port 80, on both the router and windows firewall.
What's port 443? Am I supposed to allow that as well?
I know it works, because I can see it on other machines on my LAN. But why doesn't it work on the web?
Back to top
RT-XD



Joined: 16 Jul 2014
Posts: 10
Location: UK

PostPosted: Thu 17 Jul '14 11:38    Post subject: Reply with quote

I don't think it's a firewall issue - I tried it with both the firewalls (router and windows firewall) off. I'll give it another go today and see if it works.

But it seems like the HTML files that should be showing just aren't accessible to the public. Only LAN.
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Thu 17 Jul '14 13:21    Post subject: Reply with quote

RT-XD wrote:
Thanks Smile

I've added incoming rules to allow port 80, on both the router and windows firewall.
What's port 443? Am I supposed to allow that as well?
I know it works, because I can see it on other machines on my LAN. But why doesn't it work on the web?


Port 443 is for https (ssl).

To get it working from outside the firewall is important, a port forwarding or a appropriate dmz configuration on the router is important and a correct access configuration.

Can you reach the sites from the computer where the apache service is running on?
Back to top
RT-XD



Joined: 16 Jul 2014
Posts: 10
Location: UK

PostPosted: Thu 17 Jul '14 14:18    Post subject: Reply with quote

I've allowed ports 80 and 443 to be forwarded on the router. Still get nothing on machines outside my LAN.

I can see the site on every computer on my LAN network, including the machine where apache is running on.
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Thu 17 Jul '14 15:05    Post subject: Reply with quote

Can you post your httpd.conf anonymised?
Back to top
RT-XD



Joined: 16 Jul 2014
Posts: 10
Location: UK

PostPosted: Thu 17 Jul '14 15:14    Post subject: Reply with quote

I've created a link to onedrive - should be able to download it from there:
(did not want to make a big post full of the Httpd)

https://onedrive.live.com/redir?resid=912D8242333AD897!15800&authkey=!AGdlpAPVh6JyOf0&ithint=file%2c.conf
(edit: copy the whole link into the browser. The click-able part stops half way through the link)

let me know if there's an issue downloading it.

Thanks again for helping Smile
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Thu 17 Jul '14 16:30    Post subject: Reply with quote

Download works.
Will check it later, after work.

Greets JR
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Thu 17 Jul '14 18:24    Post subject: Reply with quote

Ok, first of all i didn't see anything wrong in the loaded modules.
But i wonder about the installation path, because that is a user directory with typically very restricted rights.
So the first thing i would change is the installation path.

You can copy the apache-installation for example to c:\apache and register the path again, that would be my first step.

Then i was wondering about the proxy-configuration you have enabled. Why that? If your apache server is hosting the files, there is no need for a proxy-configuration. Try it without the proxy-configuration.
Back to top
RT-XD



Joined: 16 Jul 2014
Posts: 10
Location: UK

PostPosted: Thu 17 Jul '14 19:29    Post subject: Reply with quote

Thanks for the reply Smile

Yeh, the directory is a little strange. I'll make a copy of Apache onto C:/ and see if that helps at all.

I don't remember enabling any proxy settings. Is this the proxy settings to do with HTML4? I think that was on by default - but I'll disable that too and see what difference it makes.


Right - I've done both things. I still cannot see it outside the LAN.
The httpd.conf is now the stock (with the proxy disabled), so opening the site should just say "it works".

Which it does on my LAN, but on the WAN.
Back to top
RT-XD



Joined: 16 Jul 2014
Posts: 10
Location: UK

PostPosted: Thu 17 Jul '14 19:44    Post subject: Reply with quote

ok, I think I may done something else wrong that isn't really to do with apache.

I shut down the server and all the computers on my LAN suddenly cannot reach the site.

But for others, they still get a blank page - no connection error.

What I think is going on, is that anyone outside the LAN reaches the router and the router isn't forwarding correctly? I'm not sure why, because I forwarded port 80 to the correct local address.
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Thu 17 Jul '14 21:54    Post subject: Reply with quote

are there two locations - i mean are you working in a branch and there is a second company building somewhere else, than the router is maybe tunneling the traffic?
Back to top
RT-XD



Joined: 16 Jul 2014
Posts: 10
Location: UK

PostPosted: Thu 17 Jul '14 22:35    Post subject: Reply with quote

I'm actually setting up the site on a server I've got at home. I don't know if that changes anything?

It's a small website my friends and I are working on, and since I have a spare computer and a fair internet speed, I'm trying to host it.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 18 Jul '14 21:40    Post subject: Reply with quote

Port 80 blocked by ISP?
Back to top
RT-XD



Joined: 16 Jul 2014
Posts: 10
Location: UK

PostPosted: Sat 19 Jul '14 14:38    Post subject: Reply with quote

Ok - I mayyy have solved the issue?

Something kind of stupid, it seems like. I didn't think about this because there other things I was doing on the server that made me thing it was working.

1. Go to Network and Sharing centre
2. Make the network public instead of private

Simple as that. Now the site actually works for others - and it explains why I was only seeing it on LAN devices.
Back to top


Reply to topic   Topic: Website shows on all Lan devices, but not externally View previous topic :: View next topic
Post new topic   Forum Index -> Hardware & Networking