Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-02-2003, 04:55 PM   #1
LQ Newbie
Registered: Jun 2003
Distribution: Red Hat 8.0, 9.0
Posts: 26

Rep: Reputation: 15
Lightbulb .htaccess - Dynamic IP Question

Ok, here's the deal. I've setup my Red Hat 9.0 box which is running apache 2.0 setup with virtual hosts so that i can work with multiple websites. However, for security reason's i've blocked off everyone from accessing those virutal hosts except for myself and a few others. Those people have static IP's so it's no problem doing an "Allow from ..." within the Directory tag or in the .htaccess.

However, I have a dynamic IP dsl line and i was wondering if there was some way to include what my ip is in the conf file or htaccess as it changes dynamically otherwise i'm going to prompted to enter a username and password to view my own content!

Any ideas?

i'm using dyndns to handle my virtualhost alias along with ddclient to update them with my IP.

Last edited by anilnatha; 07-02-2003 at 05:07 PM.
Old 07-02-2003, 05:49 PM   #2
Registered: Jun 2003
Location: Iowa
Distribution: undecided
Posts: 30

Rep: Reputation: 15
I might be totally off but have you tried as your IP.
Old 07-03-2003, 02:16 AM   #3
LQ Newbie
Registered: Jun 2003
Distribution: Red Hat 8.0, 9.0
Posts: 26

Original Poster
Rep: Reputation: 15 is typically the IP to self-reference your own computer.

It is not however the IP address of your computer on the network.

The IP on your network is defined to be 192.168.*.* if you have a router and multiple computers within your network. What happens in this case, when i access any site outside of my lan, the IP that other servers see coming to them is the IP of my router which is set by my internet provider dynamically. because of this my IP in the htaccess file is never constant.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess question kidestranged Linux - Software 0 03-08-2005 11:57 AM
.htaccess Question tommytomato Linux - Security 2 06-14-2004 11:37 AM
Router/NAT and Dynaimc DNS Gerardoj Linux - Networking 3 11-21-2003 11:06 AM
.htaccess question djthewombat Linux - General 1 10-21-2002 08:24 AM
htaccess question Legolas Linux - Security 0 08-24-2001 01:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration