I was having a problem with my ensim webappliance hosted at Rackshack/Ev1servers.

I couldn't figure out why clean url's weren't working. It was redirecting me to the page to login to administer my ensim appliance!

I took a look and in:

/etc/httpd/conf/virtual

I found apache conf files for each of my web sites. The site running drupal had a mod_rewrite to rewrite /admin/ to the Ensim Administration page.

My fix was to delete this mod_rewrite because I don't need to access it that way.

You could however change the rewrite so that you could access ensim by chaning it to look something like: /ensim_admin/

Hope this helps.

If you need to see actual code, let me know I can cut and paste my code in for you.

Comments

jruberto’s picture

I have this same problem, and the solution is clear -- the /admin redirect needs to be commented out, changed or otherwise disabled. However, in the Ensim environment, I don't know the "right" way to approach that so that the change will persist...

I first used the Ensim admin interface to shut down the site before editing the above-mentioned config file, but shutting down the site via ensim *removes* that config file. Restarting the site *re-creates* the config file, and any prior edits are lost. (This is the worst part about a command line geek trying to manage a server via a mixture of ensim/cpanel/etc and manual config edits. Its not my server otherwise there would be no Ensim...)

Wondering if some Ensim-savvy person can tell me if/where there is a template file i can edit so that when the config does get re-generated in the future (or when new sites get created) it won't break admin on drupal sites. We really don't have much need for the /admin rewrite in the first place, but changing it to /ensim_admin seems sensible.

Alternately, is there something I can put in drupal's .htaccess that will override the RedirectMatch directive in the apache configuration and do the right thing? I tried a couple things unsuccessfully.

===============
Jim Ruberto
The Geek Gene
jim@geekgene.com

jruberto’s picture

Okay, forget about htaccess & rewrites & all that fancy..

Using the path module, assign an URL alias called administer pointing at admin, and ta-da.

===============
Jim Ruberto
The Geek Gene
jim@geekgene.com