You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by bruce <be...@earthlink.net> on 2003/07/26 23:20:50 UTC
[users@httpd] Apache httpd.conf questions... Configuring for multiple websites
Hi...
I'm reviewing the installation instructions for a software app...
(www.gforge.org). I'm realitvely new to apache and it's config file. But I
have some questions that I can't seem to get my hands around....
My gut tells me that all I have to do is figure out how to configure the
config file for the gforge proj/web site and the directives should then be
able to fit within the gforge site declaration....... This would allow the
config file to have multiple sites...each with a separate
DocumentRoot/ScriptAlias...
The following steps are what are required but i'm not sure that I really
understand the issue. The basic question for step #2, can you have multiple
DocumentRoot directives for different websites within the config file. I'm
pretty sure you can, but I can't figure out how... How do you set up the
config file for multiple web sites, and multiple DocumentRoot directives???
2. Change the DocumentRoot to point to the www directory: DocumentRoot "/
var/ www/ gforge-3.0/ www"
3. Change the Directory directive following the DocumentRoot as follows:
<Directory "/var/www/gforge-3.0/www">
Options Indexes FollowSymLinks
AllowOverride All Order allow,deny
Allow from all
ErrorDocument 404/404.php
</ Directory>
The same question raised above applies to the use of ScriptAlias. How do you
set up the config file for multiple ScriptAlias directives????
4. Change the ScriptAlias to /var/www/gforge-3.0/cgi-bin
5. Change the Directory configuration following the ScriptAlias directive
as follows:
<Directory "/var/www/gforge-3.0/cgi-bin">
AllowOverride All Options None Order allow,deny
Allow from all
</ Directory>
7. Add several new filenames to the DirectoryIndex directive:
DirectoryIndex index. html index. shtml index. cgi index. php
<Location/projects>
ForceType application/x-httpd-php
</ Location>
<Location/users>
ForceType application/x-httpd-php
</ Location>
Any help/pointers/assistance/etc.. would be greatly appreciated...
Thanks...
Bruce Douglas
(925) 866-2790
bedouglas@earthlink.net
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org