Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th November 2008, 13:52
ataman79 ataman79 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 25
Thanks: 4
Thanked 0 Times in 0 Posts
Default Restrict access based on IP to a subdomain

Hi,
I want to ask you how can I do that:

I have a domain, for example : mydomain.com
Than I created a subdomain: new.mydomain.com
and I want to deny all access from the internet to this subdomain new.mydomain.com, and also to allow access to it for a specific IP addresses ?

I read that I can do this with "order deny, allow....." but where I can wrote all this ?

Can anyone help me ?
Reply With Quote
Sponsored Links
  #2  
Old 26th November 2008, 15:10
ataman79 ataman79 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 25
Thanks: 4
Thanked 0 Times in 0 Posts
 
Default

Ok I solved the problem by my own, if somebody is interested here it is:

I just make an .htaccess file and in it I use:
Deny from all
Allow from ........ (ip addresses I want)

And now it's work

If this is not right , please let me now
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
update failed loge Installation/Configuration 6 1st December 2007 17:53
ip based Access restriction confighelp Installation/Configuration 1 15th November 2007 14:28
Installation Problem irpr Installation/Configuration 21 13th December 2006 11:55
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26
Restrict access to my SystemImager server cornelius Installation/Configuration 1 7th June 2005 11:35


All times are GMT +2. The time now is 06:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.