Web Portal Inaccessible

Hi All,

  • I have set up pi-hole on my ubuntu server: Ubuntu 18.04.3 LTS (GNU/Linux 5.0.0-37-generic x86_64)
  • I have another server running on this machine, so I have changed the port from 80 to 81 and restarted the server so that the new port takes effect.
  • I cannot access the admin portal on both 192.168.0.11:81/admin nor pi.hole/admin

Expected Behaviour:

[Replace this text with what you think should be happening]
Web portal should be accessible

Actual Behaviour:

[replace this text with what is actually happening]
Cannot access web portal

Debug Token:

[Replace this text with the debug token provided from running pihole -d (or running the debug script through the web interface]
https://tricorder.pi-hole.net/4kbfiurj1m

You are still having a conflict with Apache:

*** [ DIAGNOSING ]: Dashboard and block page
[✗] Block page X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 302 Found
Date: Wed, 29 Jan 2020 03:37:43 GMT
Server: Apache/2.4.29 (Ubuntu)
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-UA-Compatible: IE=edge
Vary: Origin,Accept,Accept-Encoding
Access-Control-Allow-Credentials: true
Content-Language: en
Location: /login
Content-Type: text/plain; charset=utf-8
Content-Length: 28

[✗] Web interface X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 301 Moved Permanently
Date: Wed, 29 Jan 2020 03:37:43 GMT
Server: Apache/2.4.29 (Ubuntu)
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-UA-Compatible: IE=edge
Vary: Origin,Accept,Accept-Encoding
Access-Control-Allow-Credentials: true
Location: /admin
Content-Type: text/plain; charset=utf-8
Content-Length: 40

Run this command to see which servers are on which ports:

sudo netstat -nltup | grep 'Proto\|:8080 \|:81 \|:80'

Results:

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:81              0.0.0.0:*               LISTEN      8428/lighttpd       
tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN      1167/node           
tcp6       0      0 :::8080                 :::*                    LISTEN      12585/java          
tcp6       0      0 :::80                   :::*                    LISTEN      1309/apache2        
tcp6       0      0 :::81                   :::*                    LISTEN      8428/lighttpd

Try moving Apache to port 81 and put lighttpd on port 80.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.