Domain & DNS Issues
Subdomain Shows "404 Not Found"โ
Problem: Visiting tenant.yoursite.com shows a 404 error.
Solutions:
Apacheโ
- Check that
ServerAlias *.yoursite.comis in your virtual host config - Make sure
mod_rewriteis enabled:sudo a2enmod rewrite - Restart Apache:
sudo systemctl restart apache2
Nginxโ
- Check that
server_name yoursite.com *.yoursite.com;is in your server block - Test config:
sudo nginx -t - Restart:
sudo systemctl restart nginx
cPanelโ
- Verify the wildcard subdomain exists in cPanel โ Domains
- Make sure it points to the correct directory
DNSโ
- Verify the wildcard DNS record exists:
*.yoursite.com โ your server IP - Check propagation at dnschecker.org
- Wait up to 48 hours for full propagation
Subdomain Shows Wrong Website / Default Pageโ
Problem: Subdomains show your hosting provider's default page instead of the CRM.
Solutions:
- The wildcard subdomain is pointing to the wrong directory
- In cPanel: Edit the wildcard subdomain to point to your Perfex CRM root directory
- In Apache/Nginx: Make sure
DocumentRoot(Apache) orroot(Nginx) points to your Perfex installation
Custom Domain Not Workingโ
Problem: A tenant's custom domain doesn't show their CRM.
Solutions:
- Check DNS: Use dnschecker.org to verify the domain points to your server IP
- Check web server: Make sure your Apache/Nginx is configured to accept the domain
- Check the module: Verify the custom domain is correctly entered in the tenant's settings
- Wait for propagation: DNS changes can take up to 48 hours
Apache โ Add custom domain support:โ
<VirtualHost *:80>
ServerName yoursite.com
ServerAlias *.yoursite.com
ServerAlias tenant-domain.com # Add each custom domain
DocumentRoot /var/www/html/perfex
</VirtualHost>
Or use a catch-all virtual host that accepts ANY domain:
<VirtualHost *:80>
ServerName yoursite.com
ServerAlias *
DocumentRoot /var/www/html/perfex
</VirtualHost>
Nginx โ Add custom domain support:โ
server {
listen 80 default_server;
server_name yoursite.com *.yoursite.com;
# Add _ to catch ALL domains:
server_name _;
root /var/www/html/perfex;
}
SSL Certificate Issuesโ
"Your connection is not private" Warningโ
Problem: Browser shows a security warning when accessing a subdomain or custom domain.
Solutions:
- For subdomains: Install a wildcard SSL certificate or use Let's Encrypt
- For custom domains: Each custom domain needs its own SSL certificate
- Quick fix: Use Cloudflare (free plan) โ it provides SSL for all domains
SSL Certificate Expiredโ
Problem: SSL was working but now shows an expiration warning.
Solutions:
- Let's Encrypt: Check auto-renewal:
sudo certbot renew --dry-run - cPanel: Run AutoSSL from cPanel โ SSL/TLS Status
- Manual certificate: Purchase and install a new certificate
"ERR_TOO_MANY_REDIRECTS" Errorโ
Problem: The browser shows a redirect loop error.
Solutions:
- Cloudflare + server SSL conflict: Set Cloudflare SSL mode to "Full" (not "Flexible") if your server has its own SSL
- Check .htaccess: Look for conflicting redirect rules
- Clear browser cookies: Sometimes old cookies cause redirect loops
- Check landing page mode: Try switching between "proxy" and "redirection" modes in Landing Page Settings
Tenant Gets "403 Forbidden"โ
Problem: Tenant can access the URL but sees a "403 Forbidden" error.
Solutions:
- Check directory permissions:
chmod 755on the Perfex directory - Check file permissions:
chmod 644on PHP files - Check
.htaccessfor any IP restrictions - If using Apache, make sure
AllowOverride Allis set in the virtual host
Still having DNS issues? Make sure to wait the full propagation time (up to 48 hours) before concluding there's a problem. Use dnschecker.org to monitor propagation in real-time.