ScubaDave
Sep 4 2005, 02:25 AM
I need to set a path to my second hd I am using it to upload and download files from a program someone change the apache config but it is not working any help is apreciated the dir I need to set a path to is home2/fileserver i have both set at 777 i do not need to set paswords because my program has users set up here is the conig file that was changed
CODE
<VirtualHost 66.118.xxx.xx>
ServerAlias mydomain.biz
ServerAdmin webmaster@mydomain.biz
DocumentRoot /home/mydomain/public_html
BytesLog domlogs/mydomain.biz-bytes_log
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled dave
</IfModule>
ServerName www.mydomain.biz
User dave
Group dave
CustomLog /usr/local/apache/domlogs/mydomain.biz combined
ScriptAlias /cgi-bin/ /home/mydomain/public_html/cgi-bin/
Alias /filesystem /home2/filesystem
<Directory /home2/filesystem>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Thanks
Dave
eth00
Sep 4 2005, 09:00 AM
What error are you getting? It may have been because some chrooting in apache or php. Check the error_log, that httpd.conf looks ok in itself.
If you are using it as simply /filesystem on your website you could always mount it as /home/user/public_html/filesystem rather then home2. I am not 100% sure but try moving the Alias out of the virtualhost, maybe that is causing it.
ScubaDave
Sep 4 2005, 09:20 PM
It just wont upload and I dont see an error ,the reason for the path to second hd is that it has 300 gig of space I need all that room any ideas where i can look for a solution?
eth00
Sep 4 2005, 10:31 PM
Look at what I posted above, if you want to use all 300gb for that simply mount it as /home/user/public_html/filesystem
Or does that not do what you want?
ScubaDave
Sep 5 2005, 12:58 AM
there is already that dir (home) can this be also mounted there ?
ScubaDave
Sep 5 2005, 09:28 AM
is there a way to mount it like that is that dir already exists?
Dave
eth00
Sep 5 2005, 09:31 AM
Yes you have to mount a drive to a directory that already exists. I would first remove the data on the old main drive (or copy to the new drive) or it will be "lost" where you cannot see it but the space will still be used.
huck
Sep 5 2005, 03:47 PM
There could be any number of issues:
You may need to see if you directory has "FollowSymLinks". From what I understand, apache treats the Alias command similar to a symlink.
Also you could simply enable following symlinks in your apache conf and then link the /home2/filesystem under your public_html dir
within you public_html directory run something like
ln -s /home2/filesystem filesystem
You will now have a symlink to filesystem. Assure that "FollowSymLinks" is enabled in your .htaccess or apache config. If you do it this way, the alias directive will not be required.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.