Hello all,
I have configured a web server, the details are below..
OS = RedHat Enterprise Linux 5,
web server = httpd ( came with RHEL-5, i have neither updated nor installed a latest version)
What I am trying to do : I am trying to configure my web server like the WHM(cpanel) server. So all the domains Document root will be /home/"username"/www/web/ (a bit different from cPanel server though) and log would be /home/"username"/log/ without the "Users home directory" option in my httpd.conf( since WHM httpd.conf file does not contain that).
Now, I get "UserDir Not Allowed Here" error. Please help me fix this.
I have given my httpd.conf file(I have removed some comment lines and some directives that I thought will be irrelevent) as well as error_log file(Only the error lines) here.....
Quote:
ServerTokens OS
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
Listen 80
Include conf.d/*.conf
#ExtendedStatus On
User apache
Group apache
ServerAdmin root@localhost
ServerName www.myworks.com:80
UseCanonicalName Off
#DocumentRoot "/var/www/html"
#DocumentRoot "/home/"
#DocumentRoot "/"
UserDir webs
<Directory />
Options ALL
AllowOverride ALL
</Directory>
# This should be changed to whatever you set DocumentRoot to.
#<Directory "/var/www/html">
<Directory "/home/*/www/webs">
MultiViews
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir disable
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
#UserDir public_html
UserDir webs
</IfModule>
DirectoryIndex index.html index.html.var
AccessFileName .htaccess
<Files ~ "^\.ht">
Order deny,allow
Allow from all
# Order allow,deny
# Deny from all
Satisfy all
</Files>
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
# MIMEMagicFile /usr/share/magic.mime
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
CustomLog logs/access_log combined
ServerSignature On
Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# WebDAV module configuration section.
<IfModule mod_dav_fs.c>
# Location of the WebDAV lock database.
DAVLockDB /var/lib/dav/lockdb
</IfModule>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
<IfModule mod_negotiation.c>
<IfModule mod_include.c>
<Directory "/var/www/error">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>
NameVirtualHost 10.0.0.1:80
<VirtualHost 10.0.0.1:80>
ServerAdmin webmaster@name1.myworks.com
DocumentRoot /home/shakir/www/webs/
ServerName myworks.com
ServerAlias www.myworks.com
#<IfModule !mod_disable_suexec.c>
# User shakir
# Group shakir
#</IfModule>
#UserDir disabled
#UserDir enabled shakir
# ErrorLog /home/shakir/www/logs/error_log
# CustomLog /home/shakir/www/logs/custom_log combined
</VirtualHost>
|
And my error log is :
Quote:
[Fri Mar 20 16:53:00 2009] [alert] [client 10.0.0.1] /home/shakir/.htaccess: UserDir not allowed here
[Fri Mar 20 16:53:01 2009] [alert] [client 10.0.0.1] /home/shakir/.htaccess: UserDir not allowed here
[Sun Mar 22 22:43:49 2009] [alert] [client 10.0.0.1] /home/shakir/.htaccess: UserDir not allowed here
[Sun Mar 22 22:43:49 2009] [alert] [client 10.0.0.1] /home/shakir/.htaccess: UserDir not allowed here
|