Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th August 2007, 19:07
BostonMark BostonMark is offline
Junior Member
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Virtual Hosts located in home dirs

Hi, I'm trying to set up some virtual hosts. I want my actual data to be inside the home dir of the user. From what I've been trying, I always get 403s. When I move the data outside the home, let's say /www/site it works. Here's what I think might work but won't:

Make /www/sitename/ a symlink to /home/user/sitename

Then set the Virtual Host to /www/sitename

That way the data lives at /home/user/sitename

This did not actually work. Any other ideas on how to get this to work where the data is inside of the home dirs? I absolutely need the data in the home dirs, as the RAID was made so the /home has a ton of space.

I also tried to make /home/user/site be owned by apache and the in group apache. That also didn't work. I even went as far as adding the user to the apache group; didn't work.

Any help is appreciated. I'm really willing to do anything as long as the actual data lives inside of the home dir of the user. I'm willing to change permissions and groups/owners of various dirs if necessary.

Thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 16th August 2007, 15:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Did you allow FollowSymLinks for your virtual host?
http://httpd.apache.org/docs/2.0/mod/core.html#options
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 17th August 2007, 00:23
thanis thanis is offline
Member
 
Join Date: Aug 2007
Location: somewhere over the rainbox
Posts: 30
Thanks: 0
Thanked 7 Times in 7 Posts
 
Default

If you are using virtual hosts anyways, why whould you bother setting up symlinks in your http dir anyways ? I would suggest setting up your virtual host and setting it directly to the home folder ?

Kind regards,
Thanis
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Hosts K_meleonu Server Operation 8 16th January 2010 20:11
SSL for virtual hosts on one certificate rbartz Tips/Tricks/Mods 8 20th November 2007 18:59
No Virtual Hosts tac Installation/Configuration 5 5th August 2006 17:02
403 errors and virtual hosts tommywds Server Operation 3 27th June 2006 08:09
mail problem - authentication (postfix,ISPconfig) marclar General 57 24th June 2006 17:24


All times are GMT +2. The time now is 12:18.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.