Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a web server setup on my linux machine (behind DSL router). I use Dynamis DNS so everything is cool.... I can connect to my server www.xxx.xxx from almost anywhere except the host and the intranet..
In other words, I can connect to the server using domain name from outside of my network. But I can't connect using the domain name from the host machine, where I can only connect using http://localhost.
Is this normal? What do I need to be able to connect using domain name from the host?
Yes this is normal as it relates to network loopback. You trying to request your own address and this causes your own system to become confused. It cannot resolve a request from itself to itself. Hence the requirement to use localhost. On the intranet you can use the ip address of the host. eg http://10.0.0.2
I have a web server setup on my linux machine (behind DSL router). I use Dynamis DNS so everything is cool.... I can connect to my server www.xxx.xxx from almost anywhere except the host and the intranet..
In other words, I can connect to the server using domain name from outside of my network. But I can't connect using the domain name from the host machine, where I can only connect using http://localhost.
Is this normal? What do I need to be able to connect using domain name from the host?
It's a FC6.
Thanks.
The question is "how you configured apache". I dont know FC6 default options, but have a look ok apache configuration files to know if you have a default web server.
Also, check to see if you dont have any firewall rule blocking you access atempts!
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344
Rep:
IMHO, TigerOC is correct. It has to do with your DNS showing a public IP for the web site. Your machines are looking for the site, being told by DNS that it is outside your network, going out the gateway, and then trying to return and go right back. A simple solution to this is that on your machines that are inside the network (your private lan), put an entry in the hosts file showing the website and then show the private IP. I have to do this at our network for the websites we host. Or, you can set up an internal DNS machine that can point to it but it is much easier to just do the hosts entry (unless you have a lot of PC's to do). Hope this helps!
It was just easier for me to check the website. Right now I'm having some problems to access the website from outside - selinux is blocking the web access (I don't want to disable it yet). Everything appears to be good if access from the host machine, but I'd like to make sure that's what will be seen from outside.
I'm currently using proxy, but it's a bit inconvenient.
well, I have some problems with selinux. Unless I put selinux to to permissive, my website is not accesible from outside. I'm playing with selinux right now, try to make it work at Enforcing setting.
To test if it works from outside, I have to use proxy server right now. But if i can overwrite the ip routing, so i don't have to use proxy server for the testing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.