Userdir support

Discussion in 'Install/Configuration' started by priestjim, Jul 1, 2009.

  1. priestjim

    priestjim New Member

    Hi!

    I would like to ask in what level is there UserDir support in LS (4.0.5), considering we are using exclusively Apache-style (Plesk) vhosts. Declaring the following in /etc/httpd/httpd.conf and visiting http://server ip/~user/info.php gives a 403 forbidden error:

    <IfModule mod_userdir.c>
    UserDir enabled
    UserDir disabled root bin daemon adm lp sync shutdown halt mail news uucp operator games gopher ftp nobody dbus vcsa mysql nscd ntp rpm haldaemon named dovecot apache sshd rpc postfix postgres mailnull smmsp mailman webalizer pcap alias qmaild qmaill qmailp qmailq qmailr qmails popuser psaftp psaadm
    UserDir "/var/www/vhosts/~*/httpdocs"
    </IfModule>

    Thanks!
  2. mistwang

    mistwang LiteSpeed Staff

    Is this in default httpd.conf from plesk? Or you add them?

    looks strange, I think
    makes more sense, unless there are directories name starting with "~" under "/var/www/vhosts/"
  3. priestjim

    priestjim New Member

    Yes, you are correct but the configuration is inherently flawed (as /var/www/vhosts/*/httpdocs would translate to /var/www/vhosts/user/httpdocs not /var/www/vhosts/domain/httpdocs which is the correct form). So I changed it to simply "httpdocs", as all Plesks's users home directories are their /var/www/vhosts/domain so this shoud translate http://ip/~user to /var/www/vhosts/domain/httpdocs entries BUT it's still a no-go. Debug logging gives me nothing...
  4. mistwang

    mistwang LiteSpeed Staff

    should work, please PM me the debug log.
    You still get 403 error?
    Try disable "UserDir disable ..." temporarily see if it help or not.

    If the uid of the server is lower than "Minimum UID" configured in "Server"->"Security" tab, it will return 403.
  5. priestjim

    priestjim New Member

    Is this supposed to be entered inside a virtual host directive? I am using it directly inside the main httpd.conf file.
  6. mistwang

    mistwang LiteSpeed Staff

    Yes, inside virtual host section. if used inside the main httpd.conf, it will be default apply to all vhosts.
  7. priestjim

    priestjim New Member

    Added it in a vhost, works now. Thank you!

Share This Page