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 !!
XFileSharing Pro - Useing multiple HDD ?
-
- Posts: 94
- Joined: Jan 18, 2009 4:29 am
Re: Useing multiple HDD ?
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/
the root folder must be 755 permission from beginning
cd /etc/apache/sites-available/
a2ensite new-name-vhost
/etc/init.d/apache2 restart