Skip to main content

Modifying Default Website Template and not redirected to /cgi-sys/defaultwebpage.cgi

Comments

10 comments

  • GOT
    Those templates are for sceenarios where the dns doesn't point to you or a website has been moved. What you want is to create your page and put it in the /root/cpanel3-skel directory. Docs are here: Skeleton Directory - Version 78 Documentation - cPanel Documentation
    0
  • Euralb
    Those templates are for sceenarios where the dns doesn't point to you or a website has been moved. What you want is to create your page and put it in the /root/cpanel3-skel directory. Docs are here:
    0
  • GOT
    No. If there is no account then you use the templates you found in whm. Specifically that first one
    0
  • Euralb
    No. If there is no account then you use the templates you found in whm. Specifically that first one

    Hello Again, thank you for your reply. I am doing in this way but i dont want to redirect domain to, for example domain.com/cgi-sys/defaultwebpage.cgi but to stay just domain.com and to load the /cgi-sys/defaultwebpage.cgi that is on Default Website Template on Web Template Editor. Have any way to do this ? Thank you again
    0
  • GOT
    Not that I am aware of, no.
    0
  • cPanelMichael
    Hello @Euralb, Modifying the default website page template is not the best approach to accomplish this task. Instead, you should consider automatically creating a new page named "index.html" in the document root of the domain at account creation time or after any hookable event. The following resources offer examples of how you could do this: Note the example is for WordPress, but you could apply the same concept for anything type of automated task. Thank you.
    0
  • Euralb
    Hello @Euralb, Modifying the default website page template is not the best approach to accomplish this task. Instead, you should consider automatically creating a new page named "index.html" in the document root of the domain at account creation time or after any hookable event. The following resources offer examples of how you could do this: Note the example is for WordPress, but you could apply the same concept for anything type of automated task. Thank you.

    Hello @cPanelMichael I dont know if you understand me very well. For example, i have an domain registered through a domain registrar and automatically the domain that is registered have the default nameservers of a domain registrar but isnt hosted on any server of these nameserver, he just is pointed on their nameservers and when you click the domain.com, you will see an index.html from a domain registrar that tell you: "Welcome to....." I know and i tried just to point an domain in my nameserver without creating an account in WHM and the domain displays the /cgi-sys/defaultwebpage.cgi. Now i want to display another index.html instead of defaultwebpage.cgi as the above example. But everything should be only when the user add the our default nameservers not when he creating a new account or something else. I hope that you understand me Thank you, Enea.
    0
  • cPanelMichael
    Hello @Euralb, For that to work, you'd have to consult with your domain registrar's support team to see if there is an API you could utilize to alert the cPanel & WHM server about the registration and name servers events for domain names registered through their service. We provide a list of companies offering system administration services should you need help with this type of configuration: System Administration Services | cPanel Forums Thank you.
    0
  • Mark Coates
    I have something like this. with go daddy i basically use the skeleton directory and get an account created with the basic minimum to store the files and to publish on the website. I have attached an example i have for this
    0
  • Euralb
    I have something like this. with go daddy i basically use the skeleton directory and get an account created with the basic minimum to store the files and to publish on the website. I have attached an example i have for this

    I see man but i was looking to do it automatically without creating an cpanel account for that but only to point the domain in my nameservers and thats it. :)
    0

Please sign in to leave a comment.