Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


htaccess_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
htaccess_files [2016/10/15 09:45] juckinshtaccess_files [2021/09/30 14:40] (current) juckins
Line 1: Line 1:
-======.htaccess files======+===== Apache .htaccess files and Allowing from IP Address =====
 [[http://httpd.apache.org/docs/2.0/howto/htaccess.html|Apache documentation on .htaccess]] \\ [[http://httpd.apache.org/docs/2.0/howto/htaccess.html|Apache documentation on .htaccess]] \\
 [[http://httpd.apache.org/docs/2.0/howto/auth.html|Apache documentation on auth.html]] \\ [[http://httpd.apache.org/docs/2.0/howto/auth.html|Apache documentation on auth.html]] \\
Line 32: Line 32:
 Allow from all Allow from all
 </code> </code>
- + 
 +[[https://www.inmotionhosting.com/support/website/redirects/setting-up-a-301-permanent-redirect-via-htaccess|Other .htaccess tricks]] 
 + 
 +[[https://electrictoolbox.com/apache-password-protect-allow-ip/|Use password protection but allow from IP address]] 
 + 
 +Example: 
 + 
 +  AuthUserFile /path/to/.htpasswd 
 +  AuthName "Restricted Access" 
 +  AuthType Basic 
 +  require user [username] 
 +  satisfy any 
 +  deny from all 
 +  allow from 192.168.1. 
 +  allow from 10.1.1.45 
 +  allow from 172.16.5.106
htaccess_files.1476539132.txt.gz · Last modified: 2016/10/15 09:45 by juckins