View Single Post
  #13  
Old 16th November 2008, 00:37
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

Kalua, and all:

This will be very helpful to anyone who is trying to install drupal, and other software on the same client website:

==================================================


<VirtualHost *:80>
DocumentRoot /var/clients/client1/web4/web

ServerName mydomain.com
ServerAdmin webmaster@mydomain.com

ErrorLog /var/clients/client1/web4/log/error.log

ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html

<Directory /var/www/mydomain.com/web>
Options FollowSymLinks Indexes
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>

# suphp enabled
<Directory /var/clients/client1/web4/web>
suPHP_Engine on
# suPHP_UserGroup web4 client1
AddHandler x-httpd-suphp .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-suphp
DirectoryIndex drupal/index.php
</Directory>

<Directory /var/clients/client1/web4/web/drupal>
suPHP_Engine on
# suPHP_UserGroup web4 client1
AddHandler x-httpd-suphp .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-suphp
DirectoryIndex drupal/index.php
RewriteEngine on
RewriteBase /drupal/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>



php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@mydomain.com"
#php_admin_value open_basedir /var/clients/client1/web4:/usr/share/php5
#php_admin_value upload_tmp_dir /var/clients/client1/web4/tmp
#php_admin_value session.save_path /var/clients/client1/web4/tmp

<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/clients/client1/web4/web/trac/
PythonOption TracUriRoot /trac
PythonOption PYTHON_EGG_CACHE /tmp
</Location>

<Location /trac/[[:alnum:]]+/login>
AuthType Basic
AuthName "MyDomain Trac Development"
AuthUserFile /var/clients/client1/web4/web/trac/.passwd
Require valid-user
</Location>


<Location /svn>
DAV svn
AuthType Basic
AuthName "My Trac"
AuthUserFile /var/clients/client1/web4/svn/.passwd
#AuthzSVNAccessFile /var/local/svn/svn.example.com/conf/authz
SVNPath /var/clients/client1/web4/svn/
Require valid-user
</Location>



</VirtualHost>
Reply With Quote