I generally use two computers and want to have a shared development folder so I can pick up working whether I’m at home or in the office. I had been using iCloud by adding a folder through the ‘httpd-vhosts.conf’ file - but iCloud has been really patchy and I’ve had instances of projects getting out of sync. So I looked at using Dropbox with a symlink from my Sites folder. Setting it up was really easy, and the websites popped up immediately - but as soon as I click on a link I get a 404 not found error. The files are all there, but I can’t seem to get to them.
So I tried a different method and added the path to the dev folder on Dropbox as a virtual host - with exactly the same result. Can anybody through any light on this?
Move the project folder to dropbox then make a symlink from the ~/Sites folder on my machine(s).
MiniDanno:Sites daniel$ ln -s ~/Dropbox/dev/invitationtotuscany invitationtotuscany
Still based on moving project folder into Dropbox, but then modifying httpd-vhost.conf
<VirtualHost *:80> ServerAdmin email@example.com DocumentRoot "/Users/daniel/Dropbox/dev" <Directory "/Users/daniel/Dropbox/dev"> AllowOverride None Options Indexes MultiViews FollowSymLinks Require all granted </Directory> ServerName dummy-host.example.com ServerAlias www.dummy-host.example.com ErrorLog "/opt/homebrew/var/log/httpd/dummy-host.example.com-error_log" CustomLog "/opt/homebrew/var/log/httpd/dummy-host.example.com-access_log" common </VirtualHost>
Both give the same error - the homepage appears but all internal links give 404 not Found Error (The Apache one, not the Grav one)