Hi I would like to ask it,that the box system the htacces does not know it section?
Made an epg xml and xml.gz the domain
Please help. I would like it,if only what I grant devices they can download it the epg files.
My code:
conf file:
Code
- <VirtualHost serverip:80>
- ServerAdmin webmaster@domain
- ServerName domain
- ServerAlias www.domain
- DocumentRoot /var/www/virtual/domain/epg/htdocs
- DirectoryIndex disabled
- LogLevel error
- ErrorLog /var/log/apache2/domain/error.log
- Alias /errors/ /var/www/virtual/vtmk.hu/errors/
- <Proxy "unix:/run/php/php7.0-fpm-domain.sock|fcgi://domain" retry=0>
- ProxySet connectiontimeout=5 timeout=7200
- </Proxy>
- <Directory /var/www/virtual/domain/epg/htdocs>
- Options FollowSymLinks
- DirectoryIndex index.php
- AllowOverride All
- <If "%{REQUEST_FILENAME} =~ /\.ph(?:p[3457]?|t|tml)$/ && -f %{REQUEST_FILENAME}">
- SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
- SetHandler proxy:fcgi://domain
- </If>
- DirectoryIndex index.html index.xhtml index.htm
- Require all granted
- </Directory>
- <Location /stats>
- ProxyErrorOverride On
- ProxyPreserveHost Off
- ProxyPass http://127.0.0.1:8889/stats/domain retry=1 acquire=3000 timeout=600 Keepalive=On
- ProxyPassReverse http://127.0.0.1:8889/stats/domain
- </Location>
- Include /etc/apache2/imscp/domain.conf
- </VirtualHost>
.htacces:
Code
- # secure htaccess file
- <Files .htaccess>
- order allow,deny
- deny from all
- </Files>
- # hide robots.txt
- <Files robots.txt>
- Order Deny,Allow
- Deny from All
- </Files>
- RewriteEngine On
- RewriteBase /
- SetEnvIfNoCase User-Agent "^Kodi/17.6 \(X11; Linux aarch64\) LibreELEC/8.2 App_Bitness/32 Version/17.6-Git:a9a7a20" allow_ua
- SetEnvIfNoCase User-Agent "^Kodi/18.0-BETA1 \(X11; Linux aarch64\) LibreELEC/9.0 App_Bitness/32 Version/18.0-BETA1-Git:18.0b1v2-Leia" allow_ua
- SetEnvIfNoCase User-Agent "^Kodi/18.2 \(X11; Linux aarch64\) LibreELEC/9.0 App_Bitness/32 Version/18.2-Git:18.2-Leia" allow_ua
- Allow from env=allow_ua
- Deny from All
Error log:
[access_compat:error] [pid 30580] [client ip] AH01797: client denied by server configuration:
Thanks help.