There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

toothpaste_sandwich OP ,

Well, I set up a basic nginx server and disabled Caddy. The nginx server only serves http for now, not https.

I used the basic nginx.conf and added my IPv6 address like so:


<span style="color:#323232;">#user http;
</span><span style="color:#323232;">worker_processes  1;
</span><span style="color:#323232;">
</span><span style="color:#323232;">#error_log  logs/error.log;
</span><span style="color:#323232;">#error_log  logs/error.log  notice;
</span><span style="color:#323232;">#error_log  logs/error.log  info;
</span><span style="color:#323232;">
</span><span style="color:#323232;">#pid        logs/nginx.pid;
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">events {
</span><span style="color:#323232;">    worker_connections  1024;
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">http {
</span><span style="color:#323232;">    include       mime.types;
</span><span style="color:#323232;">    default_type  application/octet-stream;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
</span><span style="color:#323232;">    #                  '$status $body_bytes_sent "$http_referer" '
</span><span style="color:#323232;">    #                  '"$http_user_agent" "$http_x_forwarded_for"';
</span><span style="color:#323232;">
</span><span style="color:#323232;">    #access_log  logs/access.log  main;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    sendfile        on;
</span><span style="color:#323232;">    #tcp_nopush     on;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    #keepalive_timeout  0;
</span><span style="color:#323232;">    keepalive_timeout  65;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    #gzip  on;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    server {
</span><span style="color:#323232;">        listen       80;
</span><span style="color:#323232;">        listen [::]:80;
</span><span style="color:#323232;">        server_name  localhost;
</span><span style="color:#323232;">
</span><span style="color:#323232;">        #charset koi8-r;
</span><span style="color:#323232;">
</span><span style="color:#323232;">        #access_log  logs/host.access.log  main;
</span><span style="color:#323232;">
</span><span style="color:#323232;">        location / {
</span><span style="color:#323232;">            root   /usr/share/nginx/html;
</span><span style="color:#323232;">            index  index.html index.htm;
</span><span style="color:#323232;">        }
</span><span style="color:#323232;">
</span><span style="color:#323232;">        #error_page  404              /404.html;
</span><span style="color:#323232;">
</span><span style="color:#323232;">        # redirect server error pages to the static page /50x.html
</span><span style="color:#323232;">        #
</span><span style="color:#323232;">        error_page   500 502 503 504  /50x.html;
</span><span style="color:#323232;">        location = /50x.html {
</span><span style="color:#323232;">            root   /usr/share/nginx/html;
</span><span style="color:#323232;">        }
</span><span style="color:#323232;">
</span><span style="color:#323232;">        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
</span><span style="color:#323232;">        #
</span><span style="color:#323232;">        #location ~ .php$ {
</span><span style="color:#323232;">        #    proxy_pass   http://127.0.0.1;
</span><span style="color:#323232;">        #}
</span><span style="color:#323232;">
</span><span style="color:#323232;">        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
</span><span style="color:#323232;">        #
</span><span style="color:#323232;">        #location ~ .php$ {
</span><span style="color:#323232;">        #    root           html;
</span><span style="color:#323232;">        #    fastcgi_pass   127.0.0.1:9000;
</span><span style="color:#323232;">        #    fastcgi_index  index.php;
</span><span style="color:#323232;">        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
</span><span style="color:#323232;">        #    include        fastcgi_params;
</span><span style="color:#323232;">        #}
</span><span style="color:#323232;">
</span><span style="color:#323232;">        # deny access to .htaccess files, if Apache's document root
</span><span style="color:#323232;">        # concurs with nginx's one
</span><span style="color:#323232;">        #
</span><span style="color:#323232;">        #location ~ /.ht {
</span><span style="color:#323232;">        #    deny  all;
</span><span style="color:#323232;">        #}
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">    # another virtual host using mix of IP-, name-, and port-based configuration
</span><span style="color:#323232;">    #
</span><span style="color:#323232;">    #server {
</span><span style="color:#323232;">    #    listen       8000;
</span><span style="color:#323232;">    #    listen       somename:8080;
</span><span style="color:#323232;">    #    server_name  somename  alias  another.alias;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    #    location / {
</span><span style="color:#323232;">    #        root   html;
</span><span style="color:#323232;">    #        index  index.html index.htm;
</span><span style="color:#323232;">    #    }
</span><span style="color:#323232;">    #}
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">    # HTTPS server
</span><span style="color:#323232;">    #
</span><span style="color:#323232;">    #server {
</span><span style="color:#323232;">    #    listen       443 ssl;
</span><span style="color:#323232;">    #    server_name  localhost;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    #    ssl_certificate      cert.pem;
</span><span style="color:#323232;">    #    ssl_certificate_key  cert.key;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    #    ssl_session_cache    shared:SSL:1m;
</span><span style="color:#323232;">    #    ssl_session_timeout  5m;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    #    ssl_ciphers  HIGH:!aNULL:!MD5;
</span><span style="color:#323232;">    #    ssl_prefer_server_ciphers  on;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    #    location / {
</span><span style="color:#323232;">    #        root   html;
</span><span style="color:#323232;">    #        index  index.html index.htm;
</span><span style="color:#323232;">    #    }
</span><span style="color:#323232;">    #}
</span><span style="color:#323232;">
</span><span style="color:#323232;">}
</span>

I can reach the webpage through the local IP (v4) address, but not online using the IPv6 address. Testing with a port checking tool does show that port 80 is open. I tried testing with my smartphone with wifi disconnected, too, but still no success… Any ideas on what I could try? I’m searching for tutorials for setting up an IPv6 nginx server but so far I’m not seeing a big difference with what I’m doing.

Yes, using now-dns.com is different from paying for a host name, but in theory entering the plain IPv6 address in square brackets in Firefox should also work, right?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines