Thanks to this post i was able to find my own issues, so i wanted to thank you by posting what i think is wrong with your config. hope it helps ;-)
Try the following:
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory /var/www/stalker_portal/>
Options -Indexes -MultiViews
AllowOverride ALL
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Middleware Nginx config /etc/nginx/sites-enabled/default
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://127.0.0.1/;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
}
location ~* \.(htm|html|jpeg|jpg|gif|png|css|js)$ {
root /var/www;
expires 30d;
}
}
My Storage / Streaming apache config /etc/apache2/sites-available/000-default.conf
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
TimeOut 1800
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
My Storage / Streaming Nginx config /etc/nginx/sites-enabled/default
server {
listen 80;
server_name mypage.com;
location / {
proxy_pass http://127.0.0.1/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location ~* \.(mpg|mpeg|avi|ts|mkv|mp4|mov|m2ts|flv|m4v|srt|sub|ass)$ {
secure_link $arg_st,$arg_e;
secure_link_md5 "supersecret$uri$remote_addr$arg_e"; # you can change secret "supersecret" in the portal config - nginx_secure_link_secret
if ($secure_link = "") {
return 403;
}
if ($secure_link = "0") {
return 410;
}
send_timeout 6h;
root /var/www/;
}
}
My Storage / Streaming Server /var/www/stalker_portal/storage/config.php
define('VIDEO_STORAGE_DIR', '/media/raid0/storage/');
define('KARAOKE_STORAGE_DIR', '/media/raid0/karaoke/');
define('RECORDS_DIR', '/media/raid0/records/');
define('NFS_HOME_PATH', '/media/raid0/mac/');
// Use login and password from the configuration file. (api_auth_login and api_auth_password in server/custom.ini)
define('API_URL', 'http://stalker@192.168.10.2/stalker_portal/api/'); //MY MIDDLEWARE IP or if over WAN your website domain ex: storage.mypage.com - use stalker as user and password (unless you changed it) as this is the default that is set in /var/www/stalker_portal/server/config.ini under the section "server api" -> see explanation below
define('PORTAL_URL', 'http://192.168.10.2/stalker_portal/'); //MY MIDDLEWARE IP or if over WAN your website domain ex: storage.mypage.com
define('STORAGE_NAME', 'HDDIPTV');
define('ASTRA_RECORDER', false);
define('DUMPSTREAM_BUFFERING', 1); // set -1 for system default
Make sur to make symbolic links to all four folders storage/karaoke/records/mac
for "Server Api" section in server/config.ini, make sure it looks like this as this is the username/password you need in /var/www/stalker_portal/storage/config.php
; API required for tv archive, pvr and billing
enable_api = true
enable_soap_api = true
; For security reasons it is highly recommended to use HTTP authentication
api_auth_login = stalker
api_auth_password = secret_pass
enable_api_log = true