Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 just installed Fedora core 3 with the intent of setting up my own webserver with apache 2.0.53. I downloaded, installed and even configured part of apache so that I can go to http://localhost and see the apache/fedora test page. My question is how do I get my webserver to catch everything going to my domain? My domain is using a dns that is pointed to my ip address, and I made a virtual host with that address and the same document root as the default server. When I go to that domain it comes up with the apache/fedora test page as it should, but when I try it on another computer I get "connection was refused". How do I configure apache?
Do you have an Allow from all directive in httpd.conf?
It may not be the httpd configuration but firewall/port permissions. As root, try
iptables -L to see what your firewall settings are.
cat /etc/hosts.allow
cat /etc/hosts.deny may be set to block outsiders.
From another PC, try
nmap ipaddress_of_server
When httpd started, did you get a message "Listening on port 80"?
Thanks for the reply,
There is nothing stored in the hosts.allow or .deny files and i believe that my httpd is set to port 80. Also the only other computers I have access to are windows, so the nmap didnt work and fedora didn't recognize the iptables command.
P.S. (I'm using webmin for configuration, but dont mind using the terminal.)
If you're just going to be serving up one domain, you don't need a vhost and is probably what's causing you trouble. I'd just use your standard document root and set the ServerName parameter accordingly. If that doesn't work, make sure that the server is running (using netstat to see if anything is listening on port 80).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.