Hi,

I was using shared hosting, but recently decided to move my Drupal website to a UNIX VPS with Verio.

The site works OK, but unfortunately, the Drupal .htaccess file is preventing me from accessing Verio's site control panel, CPX, which is essential for any maintenance.

I asked Verio for support, but they state the following:

"CPX does not have its own web directory. It runs as a daemon (vsapd) and is accessible from any domain on your server from domainname/ControlPanel. You would need to add a rule to the Drupal .htaccess file that would allow you to access it. Unfortunately, we do not provide support for .htaccess."

What is unfortunate for me is that, although .htaccess may require a simple tweak, I do not know how to do this and a search on the Internet doesn't didn't get me any further.

Any help would be much appreciated!

Thanks,
Max

Comments

dmjossel’s picture

There is an easy fix for this. When CPX is configured for a Verio VPS, it expects that it can control access to CPX through mod_rewrite in the vhost entry of the default host, with the base dir being /htdocs.

Of course, if that host (like mine) is a drupal host, then it's no good.

Instead: create a subdomain with htdocs as the base directory, and access CPX through that.

You don't need to edit .htaccess to make that work. All you need to do is add a subdomain to the domain you want to access CPX from (like cpx.somedomain.com) and then in httpd.conf, create a virtualhost (port 443 with SSL on) for that subdomain, with /www/htdocs being the default directory.

then this URL should work to access CPX:

https://cpx.somedomain.com/ControlPanel/

There may be a way, as Verio says, to modify .htaccess to allow access but frankly I don't think that's the issue. What's probably necessary is merging the mod_rewrite rules that CPX uses with those that Drupal uses, and then making sure you don't have any URL alias that conflicts with CPX.

dmjossel’s picture

Actually someone has already done exactly that:

http://drupal.org/node/65734