• Resolved rodricus

    (@rodricus)


    Hello,

    I want to place the .git folder outside the public_html folder on my FTP-server.

    I want to do this because it’s not safe to have .git folder in the public_html folder, where everyone can publicly access it.

    Ofcourse I can block the access to the .git folder in .htaccess but I have read it’s safer to put the .git folder in a folder that is not publicly accessible.

    So I put the .git folder a folder behind “public_html” and place a .git file (not .git folder) inside the public_html folder that is referencing to the new .git folder location. I also reinstalled Gitium just to be sure. But unfortunately this does not work.

    Can this somehow work? If yes, how?

    • This topic was modified 5 months ago by rodricus.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Presslabs

    (@presslabs)

    Hello,

    I will ask the technical team to see what can be done.

    Best regards,

    Plugin Author Presslabs

    (@presslabs)

    Hello @rodricus,

    I’ve discussed internally with the team and this could get complicated because you will have to create symlinks for the wp-content, root files and you should also move the upload folder because they are present in wp-content(so you will have to symlink it as well). I think is best to block the access from .htaccess or nginx.

    Best regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.