[BlueOnyx:02690] Re: index directory of the site.

Eiji Hamano (bluequartz) bluequartz at hypersys.ne.jp
Wed Oct 21 07:04:51 -05 2009


##   I have the following directory www.nameofthesite.com/drupal6 . I want
##   to make it the standard directory.
##   Is it possible to do it with the interface settings of BlueOnyx ?

#  Put a .htaccess file in the web root "/" directory with a redirect to the
#  /drupal6 directory.


Put a .htaccess file in the web root.   The file is one-line as follow.
 Redirect permanent / /drupal6

However .htaccess is not effective as default on BlueOnyx.
You must edit "httpd blueonyx conf file".

>>  vi  /etc/httpd/conf.d/blueonyx.conf

Change the following record ;
      AllowOverride AuthConfig Indexes Limit
to ;
      AllowOverride All

Then, restart httpd
>>  /etc/init.d/httpd  restart



As another method :
You can mofify "vhosts conf file".
As an example, "site1 my-domain.net 111.222.33.44".

>> cd  /etc/httpd/conf/vhosts ;
>> vi  site1 :

<VirtualHost 111.222.33.44:80>
ServerName www.my-domain.net
ServerAdmin admin
DocumentRoot /home/.sites/28/site1/web           <===
ErrorDocument 401 /error/401-authorization.html

You changed the line to ;
DocumentRoot /home/.sites/28/site1/web/drupal6/  <===


Then, restart httpd
>>  /etc/init.d/httpd  restart

Eiji Hamano




More information about the Blueonyx mailing list