Ya, I formatted and re-installed everything. I wanted a fresh start.
For the acl command, should I need to apply it from the home directory, or can I just do it on the static_test directory? |
There must be some way to do this. All of the alias examples in the Apache docs use home: http://httpd.apache.org/docs/2.0/urlmapping.html
|
@ Reply
In the link that you have posted I do not see any example in which author has used home. I will try to duplicate the way you want it to be but can't promise how soon I can, as it will depend on my schedule.
I have seen people setting up alias for directories but not for the one which is under their home directory. Because user is the owner of his home. I doubt it will work without configuring acl. Let me see if there is some alternate way to get this done. |
I was looking at the example
ScriptAliasMatch ^/~([a-zA-Z0-9]+)/cgi-bin/(.+) /home/$1/cgi-bin/$2 |
Ok, I found a solution, and thank you because it was via the setfacl command you suggested. I had tried it previously but I was using the wrong user.
sudo setfacl -R -m g:www-data:rx /home/josh/Dev What I don't understand is why I had to apply it so far up the path. Do you know why it worked at the Dev level but not static_test, or some other directory deeper in the path? |
@ Reply
You're welcome.
Great that you got it working. Please mark the thread as solved. To answer your query I need to know the acl for /home/josh. You can find that using the following command: Code:
getfacl /home/josh I will be able to say for sure if I know how acl is set on /home/josh |
This is interesting. My initial attempt using setfacl was with root, that's why those entries are there.
# file: home/josh # owner: josh # group: josh user::rwx user:root:r-x group::r-x group:root:r-x mask::r-x other::r-x # file: home/josh/Dev # owner: josh # group: josh user::rwx user:root:r-x group::--- group:root:r-x group:www-data:r-x mask::r-x other::--- What do the empty group and other entries with no permissions mean for home/josh/Dev? |
All times are GMT -5. The time now is 02:26 PM. |