• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Was testing xenforo on a server via IP, switched to domain (via Cloudflare DNS), causing problems

#1
Accessing the forum via IP makes everything work fine.

Accessing via domain name breaks several things:

1. Login sometimes does not work
2. Several CSS styles are missing (notably extras.css) or broken (forum fonts are smaller and do not match what they should be in the settings)
3. Trying to log in as admin always boots me back to the admin login screen

Whereas, logging in via IP allows me to use the forums normally, access the admin panel, etc. I did that to change the forum addresses (options, board information)

Any ideas? Running centminmod with nginx config:

Code:
# Centmin Mod Getting Started Guide
# must read http://centminmod.com/getstarted.html

# redirect from non-www to www
# uncomment, save file and restart Nginx to enable
# if unsure use return 302 before using return 301
#server {
#            listen   80;
#            server_name mydomain.com;
#            return 301 $scheme://mydomain.com$request_uri;
#       }

server {
  server_name mydomain.com www.mydomain.com *.mydomain.com IP LOADBALANCERIP;
  #server_name _;

# ngx_pagespeed & ngx_pagespeed handler
#include /usr/local/nginx/conf/pagespeed.conf;
#include /usr/local/nginx/conf/pagespeedhandler.conf;
#include /usr/local/nginx/conf/pagespeedstatslog.conf;

  # limit_conn limit_per_ip 16;
  # ssi  on;

  access_log /home/nginx/domains/mydomain.com/log/access.log combined buffer=256k flush=60m;
  error_log /home/nginx/domains/mydomain.com/log/error.log;

  root /home/nginx/domains/mydomain.com/public;
  ssi on;

  location / {

# block common exploits, sql injections etc
  #include /usr/local/nginx/conf/block.conf;

  # Enables directory listings when index file not found
  #autoindex  on;

  # Shows file listing times as local time
  #autoindex_localtime on;

  # Enable for vBulletin usage WITHOUT vbSEO installed
  # More example Nginx vhost configurations at
  # http://centminmod.com/nginx_configure.html
  #try_files    $uri $uri/ /index.php;
  #
    ssi on;

  }

  location /forums/ {
    index index.php index.html index.htm;
    try_files $uri $uri/ /forums/index.php?$uri&$args;
  }

  include /usr/local/nginx/conf/staticfiles.conf;
  include /usr/local/nginx/conf/php.conf;
  include /usr/local/nginx/conf/drop.conf;
  #include /usr/local/nginx/conf/errorpage.conf;
  include /usr/local/nginx/conf/vts_server.conf;
}
Nothing useful is showing up in the nginx log.

The admin panel error log shows this, which has only started happening since switching to the domain:

  1. Undefined index: language_id14 minutes ago - library/XenForo/Visitor.php:517
  2. Delete...
    Undefined index: properties14 minutes ago - library/XenForo/Dependencies/Public.php:303
  3. Delete...
    Argument 2 passed to XenForo_Application::mapMerge() must be of the type array, boolean given, called in /home/nginx/domains/mydomain.com/public/forums/library/XenForo/Dependencies/Public.php on line 304 and defined14 minutes ago - library/XenForo/Application.php:1174
  4. Delete...
    Undefined index: language_id14 minutes ago - library/XenForo/Visitor.php:517
  5. Delete...
    Undefined index: properties14 minutes ago - library/XenForo/Dependencies/Public.php:303
  6. Delete...
    Argument 2 passed to XenForo_Application::mapMerge() must be of the type array, boolean given, called in /home/nginx/domains/mydomain.com/public/forums/library/XenForo/Dependencies/Public.php on line 304 and defined14 minutes ago - library/XenForo/Application.php:1174
  7. Delete...
    Undefined index: language_id14 minutes ago - library/XenForo/Visitor.php:517
  8. Delete...
    Undefined index: decimal_point14 minutes ago - library/XenForo/Locale.php:666
  9. Delete...
    Undefined index: thousands_separator14 minutes ago - library/XenForo/Locale.php:667
  10. Delete...
    Undefined index: decimal_point14 minutes ago - library/XenForo/Locale.php:666
  11. Delete...
    Undefined index: thousands_separator14 minutes ago - library/XenForo/Locale.php:667
 
Last edited:
#3
This seems like it may be an SSL issue of some kind; it didn't occur on http and does occur on https. CSS renders mostly ok, but custom bits like EXTRAS.css and user group name colors do not. Any ideas? Using a LetsEncrypt certificate, nginx is configured properly (checked via lock and also ssllabs).

Same results with Cloudflare cache on and off, DNS only or not...
 

Anthony Parsons

Well-known member
#4
What have you enabled in cloud flare? Disable all speed settings and firewall rules in cloud flare. Drop all caches in CF and your browser, any server caches, try again.

If you use CF SSL you must use CF http DNS service (orange cloud).