My site via https shows "to change this page, upload a new index

     
My Site Via HTTPS Shows “To change this page, upload a new index.html to your private_html folder”
*
*
*

*

My Site Via HTTPS Shows “To change this page, upload a new index.html lớn your private_html folder”


With DirectAdmin, you could technically have two different sites for the same domain depending on whether or not you use HTTP or HTTPS. The HTTP site is loaded from public_html, & the HTTPS site is loaded from private_html. If you’ve set up your site with the standard public_html và installed an SSL for your site, you may now see the following when attempting to lớn visit the site via HTTPS,

You probably don’t want khổng lồ upload a new site as instructed in the message because of disk space, and you don’t have to. Use DirectAdmin lớn make a private_html → public_html symlink for you.

Bạn đang xem: My site via https shows "to change this page, upload a new index

*

The Fix: Making a Symlink From private_html/ -> public_html/

1. First, to login into the DirectAdmin control panel visit,

https://your-domain.com:2222orhttps://IP-address:2222orhttps://server-hostname:2222.

*

2. Navigate to Account ManagerDomain Setup.

*

3. Select the domain.

*

4. Next, click on private_html setup.

*

5. Select “Use a symbolink link from private_html to lớn public_html – allows for same data in http và https” > Click on SAVE.

Xem thêm: Hướng Dẫn Cách Sử Dụng Phần Mềm Root Android Tỷ Lệ Thành Công Tới 100%

*

Now, your directory structure for the domain name will have changed like so, and the exact same content will be loaded for HTTP and for HTTPS.

*

Configuring DirectAdmin to lớn Automatically Make a Symlink From private_html/ -> public_html/

Like managing others, you may have no desire ever khổng lồ have two separate sites hosted via HTTPS and HTTP. You may also find this extra step unnecessary và feel that this should be already done by default. If that is the case, have DirectAdmin automatically mix up the symlink for you upon domain name creation.

Login to the server asroot.

*

First, let us ensure that default_private_html_link is disabled by using the following command,

host># /usr/local/directadmin/directadmin c | grep private default_private_html_link=0As per the above output default_private_html_link=0. To enable it, we need to lớn change it lớn changedefault_private_html=1. Run the following command,

host># /usr/local/directadmin/directadmin mix default_private_html_link 1 restartdefault_private_html_link=1That’s it! The symlink will now be created automatically for all the newly deployed DirectAdmin accounts.

Conclusion

Now that we’ve gone over the fix of My Site Via HTTPS Shows, “To change this page, upload a new index.html khổng lồ your private_html folder”. Using the elaborated steps, you can set up the symlink between public_html & private_html.

jdomain.vn offers 365 days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team ready khổng lồ help you with requests should you need our assistance. You’re not using jdomain.vn for the best webhosting experience? Well, why not? check withour Sales teamto see what canjdomain.vndo for you in improving your webhosting experience.


Chuyên mục: Domain Hosting