Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Mar 10, 2015 11:10 pm 
Offline
Newbie

Joined: Tue Mar 10, 2015 11:05 pm
Posts: 3
I have owncloud installed on my linode. I was wondering if it was possible to set an iptable rule to only allow my ip address to that subdomain. I was thinking about doing it by port, but it uses https so I would have to allow 443. Does anyone have any options?


Top
   
PostPosted: Wed Mar 11, 2015 1:18 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
What you are asking is not really possible with iptables. You can, however, restrict access to certain IP addresses using your web server configuration.

For Apache 2.4, you would use a Require directive; if you're using Apache 2.2, there is an older syntax using Allow, Deny, and Order. I presume that nginx can do this, but don't know how to configure it.


Top
   
PostPosted: Wed Mar 11, 2015 1:22 am 
Offline
Newbie

Joined: Tue Mar 10, 2015 11:05 pm
Posts: 3
OK. Thank you for responding. This helps me change direction in my research on this. I'm running nginx. So now I just need to figure out how to do it from there.

Thanks.


Top
   
PostPosted: Wed Mar 11, 2015 1:00 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
Explained here:

http://nginx.com/resources/admin-guide/ ... ng-access/

_________________
sleddog


Top
   
PostPosted: Thu Mar 12, 2015 11:30 pm 
Offline
Newbie

Joined: Tue Mar 10, 2015 11:05 pm
Posts: 3
awesome! thank you. this is what i need.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group