cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

middleware:web:httpd:htaccess.html



Apache HTTP Server Configuration Examples

.htaccess

Example

Interdiction listing

Options -Indexes 
IndexIgnore *

Deny .ht* files

<Files ~ "^\.ht">
deny from all
</Files>

Deny to other domain

OK : http://www.example.com/

NG : http://user.rental-server.com/example.com/

SetEnvIf Host "^www\.example\.com$" hos_ok
order deny,allow
deny from all
allow from env=hos_ok 



middleware/web/httpd/htaccess.html.txt ยท Last modified: 2017/05/06 by admin

Page Tools