Thanks for your kind reply.
In order to avoid all the mess I reconfigured everything with the new user "test"
My DocumentRoot is pointed to "/var/www/html" and in addition to that, I want to add a webserver directory(which is located under /home/test/ directory) through Alias.
here is my /etc/httpd/conf/httpd.conf file
Code:
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /webserver /home/test/webserver
<Directory "/home/test/webserver">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Here is the content of my DocumentRoot /var/www/html/ directory
Code:
drwxr-xr-x 2 test test 4096 May 30 12:27 documents
drwxr-xr-x 2 test test 4096 May 30 11:50 pictures
drwxrwxr-x 2 test test 4096 May 30 12:18 video
-rwxr-xr-x 1 test test 21 May 30 11:52 worksheet.txt
Here is the permission setting of home direcoty
Code:
drwxr-xr-x. 6 test test 4096 May 30 11:54 home
Here is the permission setting of test direcoty
Code:
drwxr-xr-x 5 test test 4096 May 30 13:02 test
Here is the permission setting of webserver direcoty
Code:
drwxr-xr-x 4 test test 4096 May 30 11:56 webserver
Here is the content and permission setting under the webserver direcoty
Code:
-rwxr-xr-x 1 test test 30 May 30 11:56 calender.txt
drwxr-xr-x 2 test test 4096 May 30 11:55 images
drwxr-xr-x 2 test test 4096 May 30 11:56 resutls
When I visit the webpage I see the following content
Code:
Index of /
[ICO] Name Last modified Size Description
________________________________________________________________________________________________________________________________________________________
[DIR] documents/ 30-May-2014 12:27 -
[DIR] pictures/ 30-May-2014 11:50 -
[DIR] video/ 30-May-2014 12:18 -
[TXT] worksheet.txt 30-May-2014 11:52 21
________________________________________________________________________________________________________________________________________________________
Apache/2.2.15 (CentOS) Server at localhost Port 80
Here is the content of my /var/log/httpd/error_log file
Code:
[Fri May 30 13:07:19 2014] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations
Apache server is running by "test" user with SELINUX=disabled
In principle I should see the webserver directory on the webpage but it is not there
Do you have any idea about it
If I create a symbolic link, then I am able to go inside the webserver directory(its mean that, there is no permission issue) but with the Alias I can't go inside the webserver directory
Regards