LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-29-2005, 03:57 PM   #1
zupidupi
Member
 
Registered: Aug 2003
Posts: 32

Rep: Reputation: 15
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>

Last edited by zupidupi; 01-29-2005 at 04:03 PM.
 
Old 01-30-2005, 04:20 AM   #2
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
is the base directory readable? 755

linux_terror
 
Old 01-30-2005, 08:58 AM   #3
zupidupi
Member
 
Registered: Aug 2003
Posts: 32

Original Poster
Rep: Reputation: 15
Yeahyeahyeah, forgot to check that out and now I feel stupid! Thx for the reply!

Zup
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Host abridge Linux - Software 1 04-13-2005 07:35 AM
Setting up webalizer for virtual host hct224 Linux - Newbie 18 11-10-2004 03:31 PM
virtual host ziggie216 Linux - General 2 12-22-2003 06:38 PM
Virtual Host |Drakehash| Linux - Networking 0 07-17-2003 03:02 PM
VIrtual host thep Linux - General 10 08-06-2002 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration