Running video
samemiki
nginx-forum at forum.nginx.org
Thu Apr 11 21:51:50 UTC 2019
Hello,
I'm not sure if this is the right forum to ask. But, hopefully it is. I've
tried google search on this issue with no helpful result.
An admin in my work has setup a VM for a webserver running nginx. I got a
sudo account and managed to setup the website we need. We want to start
adding videos and this is when trouble comes. After adding the videos in the
right directory, I'm able to access it from a web browser (Firefox, Chrome,
IE) but I have to be connected to the office network (via VPN or being
physically in the office). When I try to access the videos from outside
network, the browser seems to just get stuck. It never returns anything.
Note that accessing html pages and javascripts from inside and outside of
the network are fine.
The server setting in nginx.conf is:
server {
listen 80;
server_name orgName.org;
root /var/www/html/;
index index.php;
autoindex off;
location / {
if (!-e $request_filename) {
rewrite ^/(.+)$ /index.php?page=$1 last;
}
}
location ~ database.js {
return 403;
}
location ~ \.php(/|$) {
include fastcgi.conf;
fastcgi_pass unix:/run/php/php7-fpm.sock;
}
}
Checking the error.log does not show any error.
Any help would be greatly appreciated. Thanks!
Miki
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283731,283731#msg-283731
More information about the nginx
mailing list