XFileSharing Pro - Useing multiple HDD ?

Powerfull XFileSharing version

Moderator: admin

Message
Author
darkm4n
Posts: 9
Joined: Jan 24, 2010 11:11 pm

Useing multiple HDD ?

#1 Postby darkm4n » Jan 24, 2010 11:15 pm

In my server i have multiple HDD , they are mounted like this example :

sdb1 to /storage1
sdc1 to /storage2
sdd1 to /storage3

and sda is mounted to / ( primary )

Now , this script only use the / partition , /var/www/cgi-bin/uploads for example . How can I make it use all Hdd's includin /storage1 , /storage2 , /storage3 ?

Thanks !!

sherayusuf3
Posts: 94
Joined: Jan 18, 2009 4:29 am
Location: Jakarta Indonesia
Contact:

Re: Useing multiple HDD ?

#2 Postby sherayusuf3 » Jan 25, 2010 5:05 am

darkm4n wrote:In my server i have multiple HDD , they are mounted like this example :

sdb1 to /storage1
sdc1 to /storage2
sdd1 to /storage3

and sda is mounted to / ( primary )

Now , this script only use the / partition , /var/www/cgi-bin/uploads for example . How can I make it use all Hdd's includin /storage1 , /storage2 , /storage3 ?

Thanks !!



make another Virtual Host like this :
vim /etc/apache/sites-available/new-name-vhost


put and edit code bellow in new-name-vhost

Code: Select all

<VirtualHost yourip:80>
        ServerName server1.mydomain.com
        ServerAdmin [email protected]
        DocumentRoot /your/new/home/dir
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /your/new/home/dir/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

#       ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
       ScriptAlias /cgi-bin/ /your/new/home/dir/cgi-bin/
        <Directory "/your/new/home/dir/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/server1.error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
  <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


chmod 755 -R /your/new/home/dir or
chmod 755 -R /your/
the root folder must be 755 permission from beginning

cd /etc/apache/sites-available/
a2ensite new-name-vhost
/etc/init.d/apache2 restart

darkm4n
Posts: 9
Joined: Jan 24, 2010 11:11 pm

#3 Postby darkm4n » Jan 25, 2010 9:51 pm

Thanks !


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests