The domain example.Org is custom domain name that points to WP Multisite enabled example.Com WP Mu site example.Com is working fine.
/home/example.Com/
This WPMU example.Com is added via CyberPanel
I need to create a subdomain name like this ok.example.Org that uses different php-CMS (not the WP )
I’m stuck at the process …
- Cloudflare > DNS > add A record points to server IP / @
- CyberPanel > Create new website > do.example.Org (example.Org points to WPMU .Com site) http check result shows
- 302
- Connection Closed
Alright, here’s a simple, step-by-step way to get your subdomain (like ok.example.org
) working with a different PHP CMS on your server using CyberPanel and Cloudflare, given your current setup:
Your Setup Recap:
example.org
is a custom domain pointing to a WordPress Multisite on example.com
example.com
is hosted on CyberPanel
- You want to add
ok.example.org
subdomain running a different PHP CMS
- Cloudflare is your DNS manager
- You added the domain and subdomain, but get 302 / Connection Closed errors
Step 1: Cloudflare DNS setup
- Go to Cloudflare Dashboard > DNS tab for
example.org
- Add a new A record:
- Name:
ok
- Content: Your server IP address
- Proxy status: DNS only (click the orange cloud to turn it grey). This avoids Cloudflare proxy messing with your site during setup.
- If you already have
example.org
A record, no need to change it.
Step 2: CyberPanel - Add website for subdomain
- Log into CyberPanel
- Go to Websites > Create Website
- In the domain field, enter:
ok.example.org
- Fill other details as needed (PHP version, owner, etc.)
- Click Create Website
Step 3: Upload your PHP CMS files to this site
- Using FTP or File Manager, upload your PHP CMS into:
/home/ok.example.org/public_html/
(or wherever CyberPanel created the document root)
Step 4: Check PHP & web server settings
- CyberPanel should automatically configure the virtual host for
ok.example.org
- Make sure
.htaccess
or nginx config is not redirecting
- PHP should be enabled for this site (check PHP version in CyberPanel > Websites > List Websites)
Step 5: Test your site without Cloudflare proxy first
- Wait a few minutes for DNS to propagate (or flush your DNS cache)
- Visit
http://ok.example.org
(use http first)
- If it works, great!
- If not, test with curl or
ping
to confirm DNS resolution
Step 6: If everything works, enable Cloudflare proxy
- Go back to Cloudflare DNS and click the grey cloud next to
ok
record to enable proxy (orange cloud)
- This allows Cloudflare features like SSL, caching, etc.
Troubleshooting Tips:
- 302 redirect often means webserver or CMS is redirecting you—check
.htaccess
, CMS config files
- Connection Closed means server or firewall might be blocking, or web server config is wrong
- Check CyberPanel logs in:
/usr/local/lsws/logs/error.log
or respective nginx/apache logs for clues.
- Make sure SSL is configured if you want HTTPS (can use CyberPanel’s AutoSSL)
Summary (Your minimal checklist)
Step |
What to do |
Cloudflare DNS |
Add ok A record → IP, DNS only |
CyberPanel |
Create website → ok.example.org |
Upload CMS |
Upload to /home/ok.example.org/public_html |
Test site |
Visit http://ok.example.org |
Enable Cloudflare proxy |
Switch DNS record to proxied |