Assalam o Alaikum. I am doing virtual hosting and done successfully. But when I make link from index.html to my folder then it gives message "You don't have permission to access /Assignment/ on this server".
Here are detail of configuration
[root@test1 test1.exp1.com]# pwd
/var/www/vhosts/test1.exp1.com
[root@test1 test1.exp1.com]# ls -l
total 8
drwxrwxrwx. 3 apache apache 4096 May 18 05:22 html
drwxrwxrwx. 4 apache apache 4096 May 17 01:37 logs
[root@test1 test1.exp1.com]# cd html
[root@test1 html]# ls -l
total 8
drwxrwxrwx. 2 apache apache 4096 May 17 04:20 Assignment
-rwxrwxrwx. 1 apache apache 75 May 17 04:25 index.html
[root@test1 Assignment]# ls -l
total 8
-rwxrwxrwx. 1 apache apache 0 May 17 04:20 Applications.doc
-rwxrwxrwx. 1 apache apache 3 May 17 04:19 Essays.doc
-rwxrwxrwx. 1 apache apache 7 May 17 04:20 Letters.doc
[root@test1 Assignment]# vim /etc/httpd/conf/httpd.conf
<VirtualHost *:80>
ServerAdmin
webmaster@test1.exp1.com
DocumentRoot /var/www/vhosts/test1.exp1.com/html
ServerName test1.exp1.com
</VirtualHost>
I have also attached httpd.conf in txt format.
Thanks