How to make Apache2 to use nfs mount with symlinks
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have not done your last suggestions. I don't know why the thread changes/additions are not being notified to my email even that I am supposedly registered to the thread and set to receive notifications immediately. As soon as I can do your request I will post back.
By the way I did not install nfs-client itself but nfs-common.
My TEST symlink points to a FILE and proves that NFS is working, permissions are correct, and symlinks are allowed.
Looking back at our conversation and your symlinks - are you pointing to a directory on purpose? Do you want to display the directory contents in the browser? is that what you are trying to do?
If so, then look up DirectoryIndex and configure it correctly for your server.
If not, then create your symlink to point to a file instead of a directory.
Last edited by szboardstretcher; 12-02-2016 at 03:15 PM.
My TEST symlink points to a FILE and proves that NFS is working, permissions are correct, and symlinks are allowed.
Looking back at our conversation and your symlinks - are you pointing to a directory on purpose? Do you want to display the directory contents in the browser? is that what you are trying to do?
If so, then look up DirectoryIndex and configure it correctly for your server.
If not, then create your symlink to point to a file instead of a directory.
Please click yes on all the posts you found helpful to increase my reputation.
Yes, I am pointing it to a Directory on purpose. I want to display all web pages and subdirectories web pages inside the Directory.
For starters, add a plus sign + to Indexes,.. like this
Code:
Options +Indexes FollowSymLinks
And see if that gets us a directory listing.
Service failed to start.
Code:
root@e2guardian:/etc/apache2# journalctl -xn
-- Logs begin at Thu 2016-10-27 11:45:12 AST, end at Fri 2016-12-02 17:36:51 AST. --
Dec 02 17:35:13 e2guardian apache2[21043]: AH00526: Syntax error on line 165 of /etc/apache2/apache2.conf:
Dec 02 17:35:13 e2guardian apache2[21043]: Either all Options must start with + or -, or no Option may.
Dec 02 17:35:13 e2guardian apache2[21043]: Action 'configtest' failed.
Dec 02 17:35:13 e2guardian apache2[21043]: The Apache error log may have more information.
Dec 02 17:35:13 e2guardian systemd[1]: apache2.service: control process exited, code=exited status=1
Dec 02 17:35:13 e2guardian systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Dec 02 17:35:13 e2guardian systemd[1]: Unit apache2.service entered failed state.
You don't have permission to access /sarg-reports-test on this server.
You don't have permission to access /sarg-reports-test/index.html on this server.
Last edited by jetberrocal; 12-02-2016 at 03:48 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.