logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


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 -> Apache View previous topic :: View next topic
Reply to topic   Topic: User authentication and password?
Author
Lexinator



Joined: 02 Mar 2008
Posts: 4
Location: China

PostPosted: Sun 02 Mar '08 16:26    Post subject: User authentication and password? Reply with quote

Hi,

I'm newbie new to this server stuff so if you offer any help to me with my
problem I'm affraid you will have to baby walk me through it.

I recently decided to try to host my own webpage from my home.
I went to a few sites and found a way to do it.
I went to everydns.net and registerd a dynamic dns with them.
I changed my domain hosting dns servers name to the instructed
one from everydns.net (ns1.everydns.net)
I also have Matt Whitlock's client updating my IP to everydns.net
server every 80 minutes. (Client located at everydns.net)
I have a DSL connection in China. (moving back to Canada in 15 days!)
I also have apache 2.2.8 running. I have not changed anything or
configured it from default installation configuration.
I'm running all that on my tower PC which runs into a Linksys BEFW11S4
V2/V3 router hooked up between my tower and my DSL modem and
have one more hub between my towner and the Linksys BEFW11S4 V2/V3 Router.

One of the strange things that is happening is that periodically I'm getting
a popup window telling me the server I'm trying to access on bla bla router
requires a user name and password.

I'm sorry but what exactly is it askingme for, because i type in my router
username and password and it's "wrong" Is it asking me for the apache
server password? If yes, where is it because I never setup a password
for this server! I also notice more often then not that my webpage is not
up and running. Is that an apache problem or is it my configuration problem
or is it my internet connection problem?
Some times I can access my webpage from my laptop on the same LAN,
but not from the computer that the site is being hosted on (sound strange?)

I would really like to hear somones opinion on whats going on with my system
and configuration here.

Can someone lend me a hand here?

Thanks for your time.

Lex.


user authentication and password?
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 610
Location: Milford, MA, USA

PostPosted: Mon 03 Mar '08 1:44    Post subject: Reply with quote

If you haven't configured Apache for passwords, most likely your problem is the router. Check in your router's Users Guide for "Port Forwarding".

Make sure you set your Linksys router to "port forward" external requests on port 80 to your Apache machine.

Also - your everydns.net setup sounds right, but updating it every 80 minutes seems excessive. Most dynamic dns companies don't like it if you update too often. If your IP expires in 3 days, try updating it every 2 days - not every 80 minutes (except when it has changed).

-tom-
Back to top
Lexinator



Joined: 02 Mar 2008
Posts: 4
Location: China

PostPosted: Mon 03 Mar '08 4:40    Post subject: Reply with quote

Hi Donovan,

Thanks for your reply!

Sorry, I forgot to mention that I have my ports open on my router.
My hosting machine's Ip is 192.168.7.101 so i have port 80 and port
7000 opened on that IP.

I have changed my IP update to every two hours.
Where can I check my lease on my IP?
Everydns says it's ok to update that often but not like
every hour or 30 minutes.
Will they block me if I update too quickly?

Thanks for your time.

*L
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 610
Location: Milford, MA, USA

PostPosted: Mon 03 Mar '08 6:20    Post subject: Reply with quote

Yes, you do need to open port 80 (and port 7000 if you use it) on your Apache machine.
That is not the same thing as having these ports forwarded from your router to your Apache machine. You need to do that too. Forwarding is something that you set up on your router, not on your Apache machine. You will need to check your router manual to see how to forward ports.

You can use these commands in a DOS window to 1.) renew your IP lease, then 2) check when it expires:
Code:
IPCONFIG /renew
IPCONFIG /all


re: "Everydns says it's ok to update that often but not like every hour or 30 minutes"
If they say you can do it, I'm sure they won't block you. Nevertheless, it seems unnecessary if your IP address lasts for days rather than hours. The IPCONFIG commands should let you see how long your IP lease lasts.

-tom-
Back to top
Lexinator



Joined: 02 Mar 2008
Posts: 4
Location: China

PostPosted: Mon 03 Mar '08 9:35    Post subject: Reply with quote

Sorry once again, Yes I do have my ports 80 and 7000 opened and forwarded. they have been open and forwarded this whole time.

What do you think is the reason I am getting this request for the
user name and password? Is this an apache configuration?
After all it is saying that the server is requiring this information, not
the router.

I have checked my lease time, it seems to expire every 24 hours so I
have my ip client refreshing my dns every 24:01hrs.

*L
Back to top
Lexinator



Joined: 02 Mar 2008
Posts: 4
Location: China

PostPosted: Mon 03 Mar '08 16:40    Post subject: Reply with quote

Also, this problem seems to be intermittent.
All of today since I have set my IP client to refresh every
24:01 hours, my webpage seems to be loading up fine, with out the
request for a user name and password. I'm just waiting to eat my
words now and have it pop up again.. ha.

*Lex
Back to top


Reply to topic   Topic: User authentication and password? View previous topic :: View next topic
Post new topic   Forum Index -> Apache