Disable userdir

Discussion in 'General' started by TomC, Mar 5, 2008.

  1. TomC

    TomC New Member

    Hi there,

    is there a way to disable the userdir-feature of apache through ISPConfig?!

    The systems running on my server don't need that feature and I would be happy if i could just switch it off.

    Regards,
    Tom
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Create the template file /root/ispconfig/isp/conf/customized_templates/vhost.conf.master which looks like this:
    Code:
    {FP_RESOURCE_CONFIG}
    {FP_ACCESS_CONFIG}
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    <!-- BEGIN DYNAMIC BLOCK: namevhost -->
    {SERVERIP}
    <!-- END DYNAMIC BLOCK: namevhost -->
    #
    #
    <!-- BEGIN DYNAMIC BLOCK: vhost -->
    
    ######################################
    # Vhost: {SERVERNAME}
    ######################################
    #
    #
    <VirtualHost {IP}>
    {HTTPD_INCLUDE}
    {SUEXEC}
    ServerName {SERVERNAME}
    ServerAdmin {SERVERADMIN}
    DocumentRoot {DOCUMENTROOT}
    {SERVERALIAS}
    {DIRECTORYINDEX}
    {CGI}
    ErrorLog {WEB_ERROR_LOG}
    {PHP}
    {RUBY}
    {SSI}
    {WAP}
    {ERRORALIAS}
    {ERROR}
    [B][COLOR="Red"]#[/COLOR][/B]AliasMatch ^/~([^/]+)(/(.*))? {HTTPD_ROOT}/{WEB}/user/$1/web/$3
    [B][COLOR="Red"]#[/COLOR][/B]AliasMatch ^/users/([^/]+)(/(.*))? {HTTPD_ROOT}/{WEB}/user/$1/web/$3
    {REWRITE_RULE}
    {FRONTPAGE}
    </VirtualHost>
    #
    {SSL}
    #
    #
    <!-- END DYNAMIC BLOCK: vhost -->
     

Share This Page