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 ›

directory change when i change port

Started by sudogo, March 29, 2015, 03:45:04 PM

Previous topic - Next topic

sudogo

Hello

I'm using CWP version: 0.9.8.4 on Centos 6

I try to user nginx as reverse proxy

my site is located in /home/XXX/public_html but when i change the port to 81 it load an other directory

i tried to add

<VirtualHost 127.0.0.1:81>
   ServerName www.yourwebsite.com
   ServerAlias yourwebsite.com
   DocumentRoot /home/xxx/public_html
       <Directory "/home/xxx/public_html">
               Options FollowSymLinks -Includes
               AllowOverride All
               Order allow,deny
               Allow from all
       </Directory>
       RewriteEngine on
</VirtualHost>


but it load always index.html stored in hdocs

I found out Apache is using another root path as CentOS Web panel is expecting. CWP is storing the config file in: /usr/local/apache/conf/httpd.conf

But Apache is reading the configuration in /etc/httpd/conf/httpd.conf:

Any adea please


sudogo

Hello

You made day ,thank you

curl -X HEAD -i http://www.mywebsite.com
HTTP/1.1 301 Moved Permanently
Server: nginx/1.6.2
Date: Mon, 30 Mar 2015 22:37:08 GMT
Content-Type: text/html; charset=iso-8859-1
Connection: keep-alive
Location: http://mywebsite.com/
X-Cache: HIT from Backend

but i have an other issue now with my rtmp module
when i add rtmp code

rtmp {
    server {
        listen 1935;

        chunk_size 4000;

        # video on demand for flv files
        application vod {
            play /var/flvs;
        }

        # video on demand for mp4 files
        application vod2 {
            play /var/mp4s;
        }
    }
}

in nginx.conf i get error :
rtmp directive is not allowed here
any advise please

brijendrasial

You need to compile rtmp modules with nginx before using it in nginx.conf file.

sudogo

Hello

thank you very much i have already rtmp module

here is the nginx output

sudo /usr/sbin/nginx -V
nginx version: nginx/1.7.11
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/sbin/nginx --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --user=nobody --group=nobody --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-pcre=/usr/local/src/pcre-8.36 --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-file-aio --with-mail_ssl_module --with-http_perl_module --with-http_flv_module --with-http_gunzip_module --with-http_image_filter_module --with-http_mp4_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_sub_module --with-http_dav_module --with-http_xslt_module --with-mail --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-mail_ssl_module --add-module=/usr/local/src/nginx-master/nginx-modules/nginx-rtmp-module --add-module=/usr/local/src/nginx-master/nginx-modules/nginx-upload-progress-module --add-module=/usr/local/src/nginx-master/nginx-modules/ngx_devel_kit


Any idea

brijendrasial

I would suggest you to contact module developer to guide your further or contacting your server admin to assist you.