Hi Alex
Thanks for your help, but still can’t make it work.
Here is my set up:
My route has only one port forwarding:
192.168.1.110 to 80
192.168.1.110 to 443
So, 192.168.1.110 is open on my router.
The Caddyfile on 192.168.1.110 is:
GNU nano 8.4 /etc/caddy/Caddyfile
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
photorpi.duckdns.org {
reverse_proxy http://192.168.1.139
}
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile
The Caddyfile on 192.168.1.139 is:
```
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
:80 {
# Set this path to your site's directory.
#root * /usr/share/caddy
root * /var/www/html
# Enable the static file server.
file_server
# Another common task is to set up a reverse proxy:
# reverse_proxy localhost:8080
# Or serve a PHP site through php-fpm:
# php_fastcgi localhost:9000
}
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile
My Duckdns looks like this:
photorpi to my exterior ip address 150.143.208.218
Now…
The only reply I get in the browser is from 192.168.1.139 on http (not on https):
Hello world from photopi on 192.168.1.139
All other request to 192.168.1.110, http://photorpi.duckdns.org/, or anything else fail.
Where you say
Where do I find or set the port number? I have no idea on where or how to do that.
So sorry about all these newbie problems!!!
Any help is really appreciated and I just have not been able to find a tutorial that matches what I want to achieve.