apache authorization problem (im a newbie) plz help very urgent
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
apache authorization problem (im a newbie) plz help very urgent
Hello. I have a very big problem that I was trying to solve for several days. I will narrow the problem down to my current task - create a simple http webserver that opens index.html. I have Fedora Core 3 with apache and all the server tools that I can possibly need. I have configured apache to accept all incoming connections and redirect everything to index.html. In every option I found, I said to "allow all hosts". I have a static IP address and Port 80 is open. I am not behind a router and I turned off my firewall. I can access my server locally, when typing either 127.0.0.1 or 127.0.0.1:80, it works both ways. But when I try to access it on any other computer, it prompts me for a username and password. I tried entering everything I could, nothing works. I even created an apache username and password, and I still cant login. i have httpd running and everything should work. I have read every documentation I could find, nothing has the answer. I was entering my external IP address (not internal by accident). I found out my external IP address from whatismyip.com. Please help me on this. I dont understand what can possibly be wrong. This is very urgent. Thank you very much for your time.
I dont consider my self a newbie in Linux (was using it as an everyday desktop OS for about 3 years), but I NEVER set up a server before, not even a home network in Linux, and I know very little about all those protocols and ports (but after playing around with apache and things now I know a lot more than I did before, still, not enough).
Here is my /etc/httpd/conf/httpd.conf (I have deleted all comments, including commented out lines of code, because otherwise linuxquestions.org wouldn't let me post):
I tried changing it to my ip address or * but it still does not work. I also forgot to mention that after a couple of unsuccessful tries to login, it gives me a "401 Unauthorized" error. Thanks anyway for your time.
Re: Re: apache authorization problem (im a newbie) plz help very urgent
Quote:
Originally posted by demian Is there a .htaccess file in your document root?
No, there are no .htaccess files anywhere. I have read somewhere that they are not required if the permissions are set in the config file (posted above). I figured I should stick with that advice and not mess around with things that I have no clue about, figuring it might only make things worse. However, are they needed? And if yes, how do I create them?
No, .htaccess files aren't required. They are used to restrict access to certain directories in the webserver document tree. And this is usually done by prompting for a username and password. That's why I asked. I'm gonna go and grab a coffee and the morning paper and think about this...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.