LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Setting up a virtual host (https://www.linuxquestions.org/questions/linux-networking-3/setting-up-a-virtual-host-283813/)

zupidupi 01-29-2005 03:57 PM

Setting up a virtual host
 
Hi folks,

I'm working with apache 2 under Mandrake, setting up my virtual host. I've set up three different vhosts, and they all show up just fine when I open them in my browser. My problem, however, is when I try to configure the server to find sites in the homedirectories. No matter what I try I get the error

(13)Permission denied: access to /~zupidupi/index.html denied

in the error_log. I have appended my Vhosts.conf-file. The three different servers zup(1-3).homedns.org show up fine but zup1.homedns.org/~zupidupi is tragically absent. And yes, there is a index.html-file in the zupidupi/public_html-directory, set to '755'. Thanks for any replies!

Cheerio

Zup


NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /www/zup1
ServerName zup1.homedns.org
ServerPath /www/zup1

# Other directives here

DirectoryIndex index.html

<Directory /www/zup1>
Order allow,deny
Allow from all
</Directory>

UserDir public_html

<Directory /home/*/public_html>
Order allow,deny
Allow from all
</Directory>

<Directory /home/*/cgi-bin/>
Options ExecCGI
SetHandler cgi-script
</Directory>

</VirtualHost>

<VirtualHost *:80>
DocumentRoot /www/zup2
ServerName zup2.homedns.org
ServerPath /www/zup2

# Other directives here

DirectoryIndex index.html

<Directory /www/zup2>
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

<VirtualHost *:80>
DocumentRoot /www/zup3
ServerName zup3.homedns.org

# Other directives here

DirectoryIndex index.html

<Directory /www/zup3>
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

linux_terror 01-30-2005 04:20 AM

is the base directory readable? 755

linux_terror

zupidupi 01-30-2005 08:58 AM

Yeahyeahyeah, forgot to check that out and now I feel stupid! Thx for the reply!

Zup


All times are GMT -5. The time now is 02:16 PM.