Reputation: 1179
I have my Apache server running under localhost on OS X, as per this guide.
I recently tried cloning the private repository for my website from my GitHub account to my ~/Sites/ folder, but it does not show up when I navigate to localhost/~USER/ in Chrome.
At first I thought it was a problem with Git in general, but I cloned a number of other repos, both public and private, and all of those show up fine.
If I create a new folder and copy the files into it, then that is viewable from localhost, but this breaks my repo. However, if I copy the files using cp -rp ./source-directory/. /new-directory/
, the .git files are copied but the folder is still unviewable from localhost.
Anyone have any ideas?
Upvotes: 0
Views: 790
Reputation: 1179
After a lot of fiddling, I discovered that the issue was due to the presence of a .htaccess file in the repo.
It appears the file in question was messing with the Apache localhost server, which was causing the folder to be inaccessible.
Upvotes: 3