Skip to content

FR: Set domain's document root to a subfolder - and change open_basedir setting #1352

@realrellek

Description

@realrellek

Is your feature request related to a problem? Please describe.
Right now, a new domain docroot is going to be located in /var/customers/webs/<customer>/<domain>/.
Also there are options for open_basedir:

  • said path
  • customer's home
  • said path's parent

The vibes are that best practice these days looks a little different. Let me explain

Describe the solution you'd like
I'd like to see the docroot default being changed to /var/customers/webs/<customer>/<domain>/public/ and the open_basedir default to said path's parent.

Describe alternatives you've considered
I'd like to have the default changed for best practice. "For me", I can do this right now as it is. But promoting a better default seems like a good idea.

Additional context
There are tips on the interwebs that you should put your config files (such as wp-config.php) to outside your docroot so it is not accessible using http/s. Which is not what froxlor promotes right now. Also we run into a problem with open_basedir's default as docroot path is not good enough in this case.

Also with frameworks like Laravel gaining popularity, its default structure is putting stuff for the web server into the "public" folder and everything else is in the parent folder, and inaccessible.

Changing this would make it a little more obvious what to do if you install a Laravel app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions