ed4d
![]() |
|
|
|
|
|||||||
| Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
Is there a way to mount/map the user data into an (ezjail) so that apache (php) can have access to the files? How do I do this secure (ZFS writeable snapshot?)? How do I handle the permissions (home files must be writeable for apache)? Regards Last edited by DutchDaemon; May 1st, 2012 at 18:04. |
|
#2
|
||||
|
||||
|
Use nullfs(5) and mount it read-only.
For example: # mount -t nullfs -o ro /home/myhomedir /jails/web/storage/Then configure Apache to show the /storage/ directory.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
|||
|
|||
|
I am failing with configuring Apache:
httpd.conf: Code:
<Directory "/usr/local/www/apache22/data/owncloud/data/bodo/files" />
AllowOverride None
Order allow,deny
</Directory>
Code:
# /usr/local/etc/rc.d/apache22 restart Performing sanity check on apache22 configuration: Syntax error on line 172 of /usr/local/etc/apache22/httpd.conf: Multiple <Directory> arguments not (yet) supported. Last edited by DutchDaemon; May 1st, 2012 at 18:04. |
|
#4
|
||||
|
||||
|
Quote:
Code:
<Directory "/usr/local/www/apache22/data/owncloud/data/bodo/files">
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#5
|
|||
|
|||
|
Thank you this was it
![]() I now decided to mount -t nullfs a cloned zfs snapshot because I need write access. Unfortunatly (I am using some WebDAV) I can access my data over the url without authentication but there should only be access through the application. Is there a quick fix or do I have to play around with the apache authentication modules? Last edited by DutchDaemon; May 1st, 2012 at 18:05. |
|
#6
|
||||
|
||||
|
I'd add some authentication to it.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#7
|
|||
|
|||
|
Hi,
Had to change "AllowOverride All" so that the .htaccess gets used. Thank you for the support
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] apache, ftp, jails, and home dirs | nORKy | Web & Network Services | 6 | May 22nd, 2011 11:04 |
| Multiple Apache / Tomcat Instances each in its own Jail | cmon | Web & Network Services | 4 | May 4th, 2010 18:01 |
| [Solved] Apache + Jail + 2 public IP = little problem | grrr | Web & Network Services | 8 | December 26th, 2009 20:26 |
| home server jail | SuperMiguel | General | 22 | June 19th, 2009 00:32 |
| apache UserDir | hirohitosan | Web & Network Services | 13 | January 1st, 2009 02:52 |