Skip to main content

Document Root for dedicated ip address

Comments

3 comments

  • HostingH
    Hello, Dedicated IP is showing your sudomain instead of main domain because in httpd.conf, whichever virtual host appears first for that IP will get displayed first in browser. Contact with your provider and ask him to liftup virtualhost entry for your main domain.
    0
  • musioc
    Hello, Dedicated IP is showing your sudomain instead of main domain because in httpd.conf, whichever virtual host appears first for that IP will get displayed first in browser. Contact with your provider and ask him to liftup virtualhost entry for your main domain.

    Thank you, I am server admin and I know this, I've deleted subdomain and added it again to resolve issue. But this is not a good idea. In other hand, I can not edit httpd.conf because I use easyapache 4 and apache 2.4, so any change will be revert.
    # Direct modifications to the Apache configuration file WILL be lost upon subsequent # regeneration of this configuration file, or an Apache update.
    0
  • cPanelMichael
    Hello, This is answered on the following post: Prevent IP browsing as it does with the server's primary IP address You'd use these instructions and change the document root value to your preference. Thank you.
    0

Please sign in to leave a comment.