LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Userdir support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-01-2009, 05:54 AM
priestjim priestjim is offline
Senior Member
 
Join Date: Mar 2009
Location: Athens, Greece
Posts: 60
Default Userdir support

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!
__________________
Web hosting, Domain Names, VPS and Dedicated Servers in one of the most secure, reliable, fast and low-cost web hosting services in the European market.

:: dnHost Interactive Agency :: Supporting and providing Litespeed Web Server in all shared hosting and VPS servers since 2008 ::
Reply With Quote
  #2  
Old 07-01-2009, 11:33 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Is this in default httpd.conf from plesk? Or you add them?

Quote:
UserDir "/var/www/vhosts/~*/httpdocs"
looks strange, I think
Quote:
UserDir "/var/www/vhosts/*/httpdocs"
makes more sense, unless there are directories name starting with "~" under "/var/www/vhosts/"
Reply With Quote
  #3  
Old 07-02-2009, 03:13 AM
priestjim priestjim is offline
Senior Member
 
Join Date: Mar 2009
Location: Athens, Greece
Posts: 60
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...
__________________
Web hosting, Domain Names, VPS and Dedicated Servers in one of the most secure, reliable, fast and low-cost web hosting services in the European market.

:: dnHost Interactive Agency :: Supporting and providing Litespeed Web Server in all shared hosting and VPS servers since 2008 ::
Reply With Quote
  #4  
Old 07-02-2009, 10:16 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
UserDir httpdocs
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.
Reply With Quote
  #5  
Old 07-06-2009, 07:28 AM
priestjim priestjim is offline
Senior Member
 
Join Date: Mar 2009
Location: Athens, Greece
Posts: 60
Is this supposed to be entered inside a virtual host directive? I am using it directly inside the main httpd.conf file.
__________________
Web hosting, Domain Names, VPS and Dedicated Servers in one of the most secure, reliable, fast and low-cost web hosting services in the European market.

:: dnHost Interactive Agency :: Supporting and providing Litespeed Web Server in all shared hosting and VPS servers since 2008 ::
Reply With Quote
  #6  
Old 07-06-2009, 07:51 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Yes, inside virtual host section. if used inside the main httpd.conf, it will be default apply to all vhosts.
Reply With Quote
  #7  
Old 07-07-2009, 07:06 AM
priestjim priestjim is offline
Senior Member
 
Join Date: Mar 2009
Location: Athens, Greece
Posts: 60
Added it in a vhost, works now. Thank you!
__________________
Web hosting, Domain Names, VPS and Dedicated Servers in one of the most secure, reliable, fast and low-cost web hosting services in the European market.

:: dnHost Interactive Agency :: Supporting and providing Litespeed Web Server in all shared hosting and VPS servers since 2008 ::
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:28 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.