Loop
March 25th, 2004, 22:22
I've installed apache 1.3 from ports, and while having a look around I noticed this:

[code:1:230c499a38]loop@erwin ~ % ls -la /usr/local/www
total 14
drwxr-xr-x 6 root wheel 512 Mar 19 12:17 .
drwxr-xr-x 19 root wheel 512 Feb 16 20:52 ..
lrwxr-xr-x 1 root wheel 27 Mar 19 12:17 cgi-bin -> /usr/local/www/cgi-bin-dist
drwxr-xr-x 3 www www 512 Mar 21 03:48 cgi-bin-dist
lrwxr-xr-x 1 root wheel 24 Mar 19 12:17 data -> /usr/local/www/data-dist
drwxr-xr-x 6 root wheel 1024 Mar 19 12:17 data-dist
drwxr-xr-x 3 root wheel 3584 Mar 19 12:17 icons
drwxr-xr-x 2 www www 512 Mar 19 12:17 proxy

loop@erwin ~ % ls -la /usr/local/www/data/
total 88
drwxr-xr-x 6 root wheel 1024 Mar 19 12:17 .
drwxr-xr-x 6 root wheel 512 Mar 19 12:17 ..
-rw-r--r-- 1 root wheel 0 Mar 19 12:17 EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING[/code:1:230c499a38]

So, where is the best place to put data files etc?

socomm
March 25th, 2004, 22:44
/usr/local/www/data

Or edit your /usr/local/etc/apache*/httpd.conf and add/edit the line for your data:

[code:1:0df0bc9a74]
DocumentRoot "/home/www/data"
[/code:1:0df0bc9a74]

I have keep a special dir for my data, don't know why though :roll:.

Loop
March 26th, 2004, 02:31
/usr/local/www/data

But this is where there is an entry that says not to put anything there!

soup4you2
March 26th, 2004, 09:20
If you put files in there your going to hate it.. mostly it's for a apache updating reason... either in your httpd.conf define a diffrent location or use a virtualhost or i believe at compile time you can specify a diffrent data dir. for it to place it's junk.