|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Mounting NAS as apache alias directory
Hi everyone. I'm new here and somewhat new to FreeBSD. I recently built a FreeBSD-based apache webserver as my home server project and I've come to the point where I want to make a share on my NAS publicly accessable. I have been managing apache webservers for quite a few years at this point, although usually on a windows server, so forgive my lack of knowledge of FreeBSD related know-how.
I mounted the share to /mnt/misc/ It's technically a windows share, although the file system on the NAS is ext3 (I think) and I know it's managed in a weird way by the NAS system itself, so we can consider it not modifyable by any external systems, the accounts set up on the NAS itself have to be specified in order to gain access. The NAS is a Buffalo Terastation Pro II Rackmount. I *think* the NAS can create NFS shares, but I haven't played with that yet. It also handles FTP access to its shares, which would be a quick and easy way to access the files but sounds quite unconventional in this situation. I did try mounting it as NFS, but it failed, perhaps I didn't set it up when I configured the share. See: this reply I set up a VirtualHost in httpd-vhosts.conf that works great and I added the Alias and <Directory /misc> directive as shown below: Code:
<VirtualHost *> ServerName domain.com ServerAdmin user@domain.com DocumentRoot "/usr/local/www/vhosts/domain.com" Alias /misc /mnt/misc/ <Directory "/mnt/misc"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> That sort of works... I can pull up http://domain.com/misc/ and I can browse the file structure just fine and dandy (there are no html or php or other website files... the NAS share is a directory of various files), but when I try to download/access any of the files, they are totally blank. I tried a work around for further diagnosis by setting up an FTP account (pureftpd) that has access to /mnt/misc and I had the same problem. I tried chmod -R 777 /mnt/misc but that did nothing. I tried chown -R www:www /mnt/misc but that also did nothing for the HTTP service. I then tried chown -R vftpuser:vftpuser /mnt/misc and that, too, did nothing for the FTP service. So, uh, can anyone help me out here on the side of FreeBSD? I think I can hold my own with the apache side of the fence, unless someone knows a better trick than the Alias directive. And this spawns a side question... if I mounted the share into /usr/local/www/vhosts/domain.com/misc would the contents of the mount get backed up if I ran dump on /usr? Thanks! Last edited by Yuka; 14th July 2008 at 10:02 PM. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Upgrade Apache 1.3 mod_ssl to Apache 2.2 | beandip | FreeBSD Ports and Packages | 11 | 26th March 2009 09:12 PM |
strange "~" directory in home directory | gosha | OpenBSD General | 5 | 23rd February 2009 06:12 PM |
Changing MAC address to an alias interface? | DNAeon | FreeBSD General | 6 | 20th January 2009 04:48 PM |
Upgrading application not installed in default port directory APACHE | ijk | FreeBSD Ports and Packages | 5 | 13th July 2008 04:34 PM |
ip alias confusion | hamba | FreeBSD General | 2 | 5th June 2008 10:23 AM |