You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
I'd like to use symlinks (or something better?) to map paths from /public to my projects in my projects folder.
I thought I could just place a symlink in there and i'd be ok since FollowSymLinks is in Options in the virtualhost file. However, this doesn't seem to be the case. I made sure to do chmod o+x on the folder also.
Anyway, I've tried googling but really haven't found anyone whose doing that so maybe you have an idea?
Here's a copy of the error i'm seeing in the log:
[client 192.168.33.1] Symbolic link not allowed or link target not accessible: /vagrant/public/homewood.dev
The text was updated successfully, but these errors were encountered:
I don't think allowing symlinks by default would be a good option though. This would introduce the mentioned security vulnerability to the vagrant-lamp project where users might modify files outside of the public directory without knowing.
When I first provisioned this box I ran into the same thing, so I'd love to see a discussion started here on what would be the 'right way' or 'lesser evil'.
My workflow now is to checkout the project to the 'public' directory and set the docroot in the databag.
@jshultz in your vagrantfile you can map the directory as a synced folder. I completely deleted the public folder from the vagrant and then added this to my vagrant file. Now my Projects dir is the Public dir without any symlinking.
@jshultz https://github.com/jshultz in your vagrantfile you can map the
directory as a synced folder. I completely deleted the public folder from
the vagrant and then added this to my vagrant file. Now my Projects dir is
the Public dir without any symlinking.
I'd like to use symlinks (or something better?) to map paths from /public to my projects in my projects folder.
I thought I could just place a symlink in there and i'd be ok since FollowSymLinks is in Options in the virtualhost file. However, this doesn't seem to be the case. I made sure to do chmod o+x on the folder also.
Anyway, I've tried googling but really haven't found anyone whose doing that so maybe you have an idea?
Here's a copy of the error i'm seeing in the log:
[client 192.168.33.1] Symbolic link not allowed or link target not accessible: /vagrant/public/homewood.dev
The text was updated successfully, but these errors were encountered: