Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

public_shtml

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
14 posts
  • Previous
  • 1
  • 2
jgriggs
Posts: 20
Joined: Thu Jul 23, 2015 12:29 pm

Re: public_shtml
  • Quote

Post by jgriggs » Thu Aug 20, 2015 6:21 pm

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
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: public_shtml
  • Quote

Post by pandabb » Sun Aug 23, 2015 12:54 am

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.
Top

masdedy
Posts: 2
Joined: Tue Aug 25, 2015 2:22 pm
Contact:
Contact masdedy
Website

Re: public_shtml
  • Quote

Post by masdedy » Sat Sep 12, 2015 1:40 pm

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
Top

ykpon
Posts: 56
Joined: Thu Jul 23, 2015 3:29 pm

Re: public_shtml
  • Quote

Post by ykpon » Sun Sep 13, 2015 1:29 pm

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
In section server { ... } on nginx add:

Code: Select all

if ($ssl_protocol = "") {
        rewrite ^/(.*) https://$server_name/$1 permanent;
}
p.s. use that tutorial for add enable/disable https redirect in web domain edit panel on vestacp.
Top


Post Reply
  • Print view

14 posts
  • Previous
  • 1
  • 2

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password