Koozali.org: home of the SME Server

Virtual user folder disable

Offline beast

  • *
  • 257
  • +0/-0
Virtual user folder disable
« on: June 05, 2026, 10:34:17 AM »
Hi

I am trying to install a Grav CMS to an ibay. But this CMS have a "user" system folder that I can not rename. It looks as this folder name is configured for something else on the server. Is it possible to disable this without a new template?

Br. Benny

Offline Jean-Philippe Pialasse

  • *
  • 2,987
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Virtual user folder disable
« Reply #1 on: June 05, 2026, 02:03:26 PM »
what is the offending name?

Offline beast

  • *
  • 257
  • +0/-0
Re: Virtual user folder disable
« Reply #2 on: June 05, 2026, 03:23:59 PM »
Just the sub folder "user". This is a virtual folder name in apache as far as I can see.

Offline Jean-Philippe Pialasse

  • *
  • 2,987
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Virtual user folder disable
« Reply #3 on: June 05, 2026, 05:13:20 PM »
this is not related to SME, but a contrib.
moving.

/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/28UserManagerProxyPass shows:
Code: [Select]
{
    # vim: ft=perl:

    $haveSSL = (exists ${modSSL}{status} and ${modSSL}{status} eq "enabled") ?  'yes' : 'no';
    $plainTextAccess = ${'httpd-admin'}{PermitPlainTextAccess} || 'no';
    $UserAlias = ${UserPanelAlias} || 'user';


    $OUT = '';
    foreach $place ('user-manager',$UserAlias)
    {
        if (($port eq "80") && ($haveSSL eq 'yes') && ($plainTextAccess ne 'yes'))
        {
            $OUT .= "    RewriteRule ^/$place(/.*|\$)    https://%{HTTP_HOST}/$place\$1 [L,R]\n";
        } else {
            $OUT .= "    ProxyPass /$place http://127.0.0.1:${'httpd-admin'}{TCPPort}/$place\n";
            $OUT .= "    ProxyPassReverse /$place http://127.0.0.1:${'httpd-admin'}{TCPPort}/$place\n";
        }

        $OUT .= "    <Location /$place>\n";
        if (($haveSSL eq 'yes') && (($port eq "443") || ($plainTextAccess ne 'yes')))
        {
            $OUT .= "        Require ip $localAccess $externalSSLAccess\n";
        } else {
            $OUT .= "        Require ip $localAccess\n";
        }
        $OUT .= "    </Location>\n";
    }
}


Code: [Select]
# rpm -qf /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/28UserManagerProxyPass
smeserver-userpanel-1.4-6.el7.sme.noarch

so your fix would be
Code: [Select]
config set UserPanelAlias userp
expand-template /etc/httpd/conf/httpd.conf
systemctl restart httpd-e-smith

Offline beast

  • *
  • 257
  • +0/-0
Re: Virtual user folder disable
« Reply #4 on: June 06, 2026, 05:58:02 AM »
Thank you - that was the solution