Shared folder of VirtualBox as Apache2 www directory

خرید بک لینک

I using VirtualBox in Windows and I have installed Kali Linux on it. I have configured NAT network so that I can connect to the Apache server in the Linux VM through Windows browser. It works fine and I can access files in /var/www folder in my VM.

I have set a shared folder that can be accessed by both Windows and Kali Linux. I want to set that folder as the www folder Apache2 server. How can I do that..?

I tried editing apache2.conf file by replacing <Directory /var/www> as <Directory /media/sf_www>. (sf_www is the shared folder). But it gives 403 error.

Then I tried replacing vboxsf:x:142: with vboxsf:x:142:www-data in /etc/group file and restart the VM. But the result was same.

So, how can I configure a shared folder as the www folder of the Apache2 server..?

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 239 تاريخ: پنجشنبه 6 خرداد 1395 ساعت: 22:45

صفحه بندی