Hello everybody,
im using nginx with owncloud on my raspberry pi. Under "sites available -> default" i've set it up like this.
server {
listen 80;
server_name 192.168.1.114;
return 301 https://$server_name$request_uri; # enforce https
}
server {
listen 443 ssl;
server_name 192.168.1.114;
ssl_certificate /etc/nginx/cert.pem;
ssl_certificate_key /etc/nginx/cert.key;
# Path to the root of your installation
root /var/www/owncloud;
......
Now, i've registered a no-ip domain, forwarded the ports etc. that i can access my cloud from anywhere.
I've changed the "server_name" to my no-ip domain and restarted nginx. Now when i type in "mynoipdomain.whatever.com" in my browser, it always rederict me to "192.168.1.114". Therefore im not able to access it over the internet.
What do i have to do that i can access my server from the internal ip when im in LAN (that it sync the files faster), but i also want to get access to it over my no-ip domain.
Any ideas?
im using nginx with owncloud on my raspberry pi. Under "sites available -> default" i've set it up like this.
server {
listen 80;
server_name 192.168.1.114;
return 301 https://$server_name$request_uri; # enforce https
}
server {
listen 443 ssl;
server_name 192.168.1.114;
ssl_certificate /etc/nginx/cert.pem;
ssl_certificate_key /etc/nginx/cert.key;
# Path to the root of your installation
root /var/www/owncloud;
......
Now, i've registered a no-ip domain, forwarded the ports etc. that i can access my cloud from anywhere.
I've changed the "server_name" to my no-ip domain and restarted nginx. Now when i type in "mynoipdomain.whatever.com" in my browser, it always rederict me to "192.168.1.114". Therefore im not able to access it over the internet.
What do i have to do that i can access my server from the internal ip when im in LAN (that it sync the files faster), but i also want to get access to it over my no-ip domain.
Any ideas?