| Linode Forum https://forum.linode.com/ |
|
| How to whitelist ip to a specific domain https://forum.linode.com/viewtopic.php?f=19&t=11664 |
Page 1 of 1 |
| Author: | dtwozero [ Tue Mar 10, 2015 11:10 pm ] |
| Post subject: | How to whitelist ip to a specific domain |
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? |
|
| Author: | Vance [ Wed Mar 11, 2015 1:18 am ] |
| Post subject: | Re: How to whitelist ip to a specific domain |
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. |
|
| Author: | dtwozero [ Wed Mar 11, 2015 1:22 am ] |
| Post subject: | Re: How to whitelist ip to a specific domain |
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. |
|
| Author: | sleddog [ Wed Mar 11, 2015 1:00 pm ] |
| Post subject: | Re: How to whitelist ip to a specific domain |
Explained here: http://nginx.com/resources/admin-guide/ ... ng-access/ |
|
| Author: | dtwozero [ Thu Mar 12, 2015 11:30 pm ] |
| Post subject: | Re: How to whitelist ip to a specific domain |
awesome! thank you. this is what i need. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|