I have a RPi running nginx as a web-server (default installation except /var/www as default directory), but I can only access it inside LAN.
I followed this tutorial and in sites-available I created a file with the following code:
server {
listen 80;
root /var/www;
index index.php index.html index.htm;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm-sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
What do I need to do to make it accessible from outside my network?
What is port forwarding?
near the bottom of the answer. – Piotr Kula Oct 24 '13 at 12:02netstat -tnalp | grep :80
shows0.0.0.0:80
, then nginx is configured well enough to allow people from your LAN to communicate with it. Setting up port-forwarding is different for every router, but it often boils down to logging in to the configuration page and looking for Application/Port forwarding. – Lekensteyn Oct 24 '13 at 13:25