Skip to main content

SuPHP ban access to htdocs

Comments

5 comments

  • Infopro
    root owns that directory. I'm curious why you'd put a sitemap there. Can you explain a bit? Thanks.
    0
  • someone235
    Most of my domains use the same files, so I put all the files I need in htdocs, and then I don't need to update my DNS for every domain that is pointed to my server. But I need an alternative way to access the sites without the domains (until the DNS is updated), so I want that the URL /http://myprimarydomain.com/sites/domain.com will point to the same file as /http://domain.com, but the problem is that myprimarydomain.com is not in htdocs, and uses a different user, so it cannot access htdocs files.
    0
  • cPanelMichael
    Hello :) My advice would be to update the "hosts" file on your personal computer if you need a method to access your websites before the name servers are updated. The method you are considering currently is not secure. Thank you.
    0
  • someone235
    [quote="cPanelMichael, post: 1695471">Hello :) My advice would be to update the "hosts" file on your personal computer if you need a method to access your websites before the name servers are updated. The method you are considering currently is not secure. Thank you.
    I cannot make my primary user own htdocs somehow?
    0
  • cPanelMichael
    It's not recommended without sacrificing the security of your system. If you did plan to complete this type of setup, you may want to consider using another PHP handler such as DSO. Thank you.
    0

Please sign in to leave a comment.