New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

domain.com to www.domain.com

Started by paky1099, August 10, 2017, 01:23:30 PM

Previous topic - Next topic

paky1099

Hi, I created the domain domain.com in the control panel. If i go to http://domain.com I view the HTTP Server Page but I would to redirect domain.com to www.domain.com.

Can I do it? How do you do it?

Thanks


darkness

Normally when you create domain.com, the CWP automatic creates www.domain.com as an ServerAlias in the Apache, localhost.domain.com, ftp.domain.com, mail.domain.com and www.domain.com as a CNAME in Bind(DNS). So, just try to open www.domain.com in your browser. If it`s not working than let me know and we will figure it out.
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

6Sense

I use CloudFlare for DNS and set 301 redirects to preferred domain  :)
6Sense - Web Design, Development & Web Hosting

paky1099

Hi,
the www "version" of the website works correctly but if I write the URL without www I see the HTTP Test Page powered by CWP | CentOS-WebPanel.com.

The DNS zone is managed by OVH, not by CWP (it's an error?).

darkness

Hi,
I`ve never used OVH, but you should change the "DocumentRoot" in OVH for domain.com to point on the same place where www.domain.com is pointing and you should be ok. Try and let me know.
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

paky1099

Hi, I managed the DNS zone with OVH...I haven't any VPS/Dedicated Server/Hosting with OVH.

I check the /usr/local/apache/conf.d/vhosts.conf and this is the content:

# vhost_start domain.com
<VirtualHost ip:80>
ServerName domain.com
ServerAlias www.domain.com
ServerAdmin 5
DocumentRoot "/home/g123ftp1/public_html"
ScriptAlias /cgi-bin/ "/home/g123ftp1/public_html/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/g123ftp1/domain.com/*.conf

<IfModule mod_suexec.c>
        SuexecUserGroup g123ftp1 g123ftp1
</IfModule>

<IfModule mod_suphp.c>
        suPHP_UserGroup g123ftp1 g123ftp1
        suPHP_ConfigPath /home/g123ftp1
</IfModule>

<Directory "/home/g123ftp1/public_html">
        AllowOverride All
</Directory>

</VirtualHost>
# vhost_end domain.com

I tried to add "ServerAlias domain.com" but is the same.

What can I do?

P.S. I compared the DNS zone of CWP with the DNS zone of OVH and there are the same records.

lecter23

Hi Paky1099, did you solve this? I have the same problem.

Subdomains, including www, are ok, but domain.com without www shows test page.

Thanks!