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 ›

Apache / Vhost Listen via IP Address

Started by GuruDavid, April 24, 2015, 09:20:03 PM

Previous topic - Next topic

GuruDavid

My VPS has only 1 IP, but I'd like to be able to access my domain from the main IP address as well.

Any ideas?

brijendrasial

/usr/local/apache/conf/sharedip.conf is responsible for that. As you can see inside ServerName and DocumentRoot is defined which is responsible for IP address to open Apache page. I went ahead and changed DocumentRoot /home/USER/public_html/ and restarted Apache. Now I can access my website with IP Address.

GuruDavid

Quote from: BullTen on April 25, 2015, 12:00:53 AM
/usr/local/apache/conf/sharedip.conf is responsible for that. As you can see inside ServerName and DocumentRoot is defined which is responsible for IP address to open Apache page. I went ahead and changed DocumentRoot /home/USER/public_html/ and restarted Apache. Now I can access my website with IP Address.

@BullTen,

Fantastic, thanks for your reply! I did already try this, as you can see here:
--

File: /usr/local/apache/conf/sharedip.conf                                                                                                                         

NameVirtualHost 192.95.31.XX:80

<VirtualHost 192.95.31.XX:80>
    ServerName 192.95.31.XX
    ServerAdmin user@domain.com
    DocumentRoot "/home/USER/public_html"
    ScriptAlias /cgi-bin/ "/home/USER/public_html/cgi-bin/
    #
    # Custom settings are loaded below this line (if any exist)
    # Include "/usr/local/apache/conf/userdata/USER/DOMAIN/*.conf

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

</VirtualHost>

*NOTE* : USER, DOMAIN, and (XX) have been replaced with proper/correct information on the live version.


NA/DEDI root@192.95.31.XX 127.0.0.1 [~]# /usr/local/apache/bin/httpd -S
VirtualHost configuration:
192.95.31.XX:80        is a NameVirtualHost
         default server 192.95.31.XX (/usr/local/apache/conf/sharedip.conf:3)
         port 80 namevhost 192.95.31.XX (/usr/local/apache/conf/sharedip.conf:3)
         port 80 namevhost DOMAIN.com (/usr/local/apache/conf.d/vhosts.conf:2)
Syntax OK


Apache is reporting that everything is functioning as it should. However, when visiting the IP address, I receive an Internal Server Error, while the domain loads properly.


[GuruDavid@vpn.sg] {~}$ whatweb 192.95.31.XX
http://192.95.31.XX [500] Apache[2.2.27][mod_ssl/2.2.27], Country[CANADA][CA], Email[user@domain.com], HTTPServer[Unix][Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips], IP[192.95.31.XX], OpenSSL[1.0.1e-fips], Title[500 Internal Server Error]
[GuruDavid@vpn.sg] {~}$ whatweb domain.com
http://domain.com [200] Apache[2.2.27][mod_ssl/2.2.27], Country[CANADA][CA], Frame, HTTPServer[Unix][Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips], IP[192.95.31.XX], JQuery[1.11.1], MetaGenerator[WordPress 4.1.2], OpenGraphProtocol[website], OpenSSL[1.0.1e-fips], PHP[5.4.27], Script[application/ld+json,text/javascript], Title[Domain - WordPress], WordPress[4.1.2], X-Powered-By[PHP/5.4.27], x-pingback[http://domain.com/xmlrpc.php]


Any ideas?

Regards,

Administrator

you should check error log for this issue
/usr/local/apache/logs/error_log

brijendrasial

well I did the same and its working fine. You need to check your error_log for more info.