LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-02-2003, 05:55 PM   #1
anilnatha
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 06:07 PM.
 
Old 07-02-2003, 06:49 PM   #2
infected
Member
 
Registered: Jun 2003
Location: Iowa
Distribution: undecided
Posts: 30

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

Original Poster
Rep: Reputation: 15
127.0.0.1 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.
 
  


Reply


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 12:57 PM
.htaccess Question tommytomato Linux - Security 2 06-14-2004 12:37 PM
Router/NAT and Dynaimc DNS Gerardoj Linux - Networking 3 11-21-2003 12:06 PM
.htaccess question djthewombat Linux - General 1 10-21-2002 09:24 AM
htaccess question Legolas Linux - Security 0 08-24-2001 02:14 PM


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

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