public_shtml
Re: public_shtml
VaishnaviK wrote:I am not sure but i think this is what you require: If you want to show static page, when your website is down for some reason, you can follow below steps for the same:
1. Log into your cPanel.
2. Go to File Manager icon.
3. On the pop-up, choose to go to the Web Root (public_html/www) folder.
4. Hit the Go button.
5. Go to the top menu on the page and click the New File icon.
6. For the new file name, type "index.html" (without the quotation marks)
7. Click the Create New File button.
8. Look for the new file you created in the main list
9. Right click the icon for index.html and choose the HTML Edit option from the drop down.
The page that appears will allow you to have a WYSIWYG editor which makes web design seem simple.
To remove the page, delete the file that was created in the previous steps. The file can also be replaced with a new version with the same file name instead.
To add images to your WYSIWYG page:
1. Login to cPanel.
2. Click on the File Manager icon.
3. On the pop-up, choose to go to the Web Root (public_html/www) folder.
4. Hit the Go button.
5. Go to the top menu on the page and click the Upload icon.
6. On the new window, click the Browse button to locate the images on the local machine.
7. Double click the image when found, and wait for the blue bar to reach 100% Complete.
8. Click the Back to /home/your-user-name/public_html link. The image file will now appear along with your index.html file.
9. Go back to the HTML Edit tool.
10. Click the Image icon.
11. A popup box will appear with options for managing the image you wish to include. Please click Browse Server to select an image stored on the server.
12. A new window will popup. Use the navigation menus to browse to the location where the image you wish to use is saved, then double click the image file.
13. You will be returned to the orginal popup box. From here you may select options such as to change the dimensions of the image. When you are done selecting additional options for your image, please click Ok
14. Go to the top left of the editor and click the Save icon.
15. Go preview your site. Make changes as needed.
Hope it helps you...
I dont see any of that in my version of Vesta
Re: public_shtml
I also got the same error when i tried adding my first ssl, just double check the keys and put it on the appropriate box/field.
Re: public_shtml
Hello,
i have similar problem.
i have website a live. say: mydomain.com
then i bought SSL certificate from namecheap.
i installed it success in folder public_html.
what i want is when we type URL : mydomain, it must be redirected to https://mydomain.com
---unfortunately till now can not.
i have tried to use .htaccess and put it in folder public_html
my .htaccess are below:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%
{REQUEST_URI} [R,L]
__________
after that i tried again to load URL, and still can not reach https://mydomain.com
and my site mydomain.com still alive.
when i type https://mydomain.com , the result is
MYDOMAIN.COM
Powered by VESTA
___ it means my public_shtml alive.
so what should i do then? how if i copy content of public_html to public_shtml?
FYI: in vesta panel i already change to SSL_HOME: public_shtml , previously SSL_HOME in public_html.
but the real file of SSL certificate are in public_html.
Thank for advance
i have similar problem.
i have website a live. say: mydomain.com
then i bought SSL certificate from namecheap.
i installed it success in folder public_html.
what i want is when we type URL : mydomain, it must be redirected to https://mydomain.com
---unfortunately till now can not.
i have tried to use .htaccess and put it in folder public_html
my .htaccess are below:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%
{REQUEST_URI} [R,L]
__________
after that i tried again to load URL, and still can not reach https://mydomain.com
and my site mydomain.com still alive.
when i type https://mydomain.com , the result is
MYDOMAIN.COM
Powered by VESTA
___ it means my public_shtml alive.
so what should i do then? how if i copy content of public_html to public_shtml?
FYI: in vesta panel i already change to SSL_HOME: public_shtml , previously SSL_HOME in public_html.
but the real file of SSL certificate are in public_html.
Thank for advance
Re: public_shtml
In section server { ... } on nginx add:masdedy wrote:Hello,
i have similar problem.
i have website a live. say: mydomain.com
then i bought SSL certificate from namecheap.
i installed it success in folder public_html.
what i want is when we type URL : mydomain, it must be redirected to https://mydomain.com
---unfortunately till now can not.
i have tried to use .htaccess and put it in folder public_html
my .htaccess are below:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%
{REQUEST_URI} [R,L]
__________
after that i tried again to load URL, and still can not reach https://mydomain.com
and my site mydomain.com still alive.
when i type https://mydomain.com , the result is
MYDOMAIN.COM
Powered by VESTA
___ it means my public_shtml alive.
so what should i do then? how if i copy content of public_html to public_shtml?
FYI: in vesta panel i already change to SSL_HOME: public_shtml , previously SSL_HOME in public_html.
but the real file of SSL certificate are in public_html.
Thank for advance
Code: Select all
if ($ssl_protocol = "") {
rewrite ^/(.*) https://$server_name/$1 permanent;
}