afterdead/zpanelx/master/.htaccess - Htaccess File

afterdead/zpanelx/master/.htaccess

RewriteEngine on
RewriteRule ^api/([^/.]+)/?$ bin/api.php?m=$1 [L]
RewriteRule ^apps/([^/.]+)/?$ etc/apps/$1 [L]

# Sample rules how to ban Zpanel from IP Access:
# Uncomment following lines and set your domain to 
# restrict zpanel only on this domain

# RewriteCond %{SERVER_NAME} !^zpanel.domain.com$ 
# RewriteRule ^ - [F]

#Deny access to some file types / directories
RewriteRule ^/?(.git|.tx|SQL|config|logs|temp|tests|program/(include|lib|localization|steps)) - [F]
RewriteRule ^(etc/tmp|etc/zppy-cache|/etc/lib/pChart2/cache|etc/build) - [F,L,NC]
#disable index listing
Options -Indexes

On Github License

Files

Download PDF of Htaccess file
SERVER_NAME

Comments

Apache