Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2 DocumentRoot dilemma [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
safeness
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2004
Posts: 105
Location: Eastside, WA

PostPosted: Fri Oct 28, 2005 10:09 pm    Post subject: apache2 DocumentRoot dilemma [SOLVED] Reply with quote

I emerged drupal with -vhosts and have /var/www/localhost/htdocs/drupal set as my DocumentRoot. I would like to add gallery to my webpage while keeping drupal as my DocumentRoot.

What first came to mind was just creating a symlink from htdocs/gallery to htdocs/drupal/gallery, but that gives me a 403 error. Has anyone else run into a problem like this and found a workaround?


Last edited by safeness on Sat Oct 29, 2005 12:47 am; edited 1 time in total
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Fri Oct 28, 2005 11:39 pm    Post subject: Reply with quote

Hi.

Why don't you create an Alias and Directory entry for your gallery? Add the following to httpd.conf.
Code:
Alias /gallery "/var/www/localhost/htdocs/gallery"

<Directory /var/www/localhost/htdocs/gallery>
    Option FollowSymLinks
    AllowOverride none
</Directory>

_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
safeness
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2004
Posts: 105
Location: Eastside, WA

PostPosted: Sat Oct 29, 2005 12:50 am    Post subject: Reply with quote

Thanks for the tip! That was exactly what I was looking for. One note though,
Quote:
Option FollowSymLinks
should be
Quote:
Options FollowSymLinks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum