You are not logged in.

#1 2013-01-13 16:01:23

Psyconaughty
Member
Registered: 2012-07-07
Posts: 11

Web Server Not Connecting Locally (Connects from Outside Network)

I'm trying to set up an OwnCloud server. And I have LAMP all set up and port 80 and 443 are both open to the computer I need (192.168.2.4, checked at canyouseeme.org). I also have NOIP2 for my DNS installed. When I type 192.168.2.4 into a browser from another computer I get OwnCloud but when I type my domain I get unable to connect. SSl is set up.

I have no Idea what the problem is.

Last edited by Psyconaughty (2013-01-14 02:25:47)

Offline

#2 2013-01-13 19:30:40

Ztjuh
Member
Registered: 2011-05-30
Posts: 58

Re: Web Server Not Connecting Locally (Connects from Outside Network)

Add the domain to your hosts file, since it's in your local network, the DNS server will give you your external IP, and probally your router or something blocks it.. But adding the ip + domain to your hosts file will solve the problem.

Example:
192.168.2.4 www.domain.com

Offline

#3 2013-01-13 21:00:25

Psyconaughty
Member
Registered: 2012-07-07
Posts: 11

Re: Web Server Not Connecting Locally (Connects from Outside Network)

Thank you Ztjuh,

The problem what that I was trying to connect while on the same network(I tried it off the network and it workd great), but... adding the ip and domain didn't fix it. But now that I know that I can access it out side the network It is not that big of a deal, but I will keep trying to fix it.

I should add that I'm using dhcpcd to connect to the network. I could not get the staic ip to work using the wiki instructions. Would this make a diffrence?

Last edited by Psyconaughty (2013-01-14 00:29:28)

Offline

#4 2013-01-14 02:22:28

Psyconaughty
Member
Registered: 2012-07-07
Posts: 11

Re: Web Server Not Connecting Locally (Connects from Outside Network)

OK, I think I'm going to need a DNS forwarder so I installed BIND. I looked at the wiki and don't really understand it...

 If you have problems with, for example, VPN connections, they can sometimes be solved by setting-up a forwarding DNS server. This is very simple with BIND. Add these lines to /etc/named.conf, and change IP address according to your setup.

listen-on { 192.168.66.1; };
forwarders { 8.8.8.8; 8.8.4.4; };

Don't forget to restart the service!  

I'm not real sure what IP addresses go where.

Offline

Board footer

Powered by FluxBB