Page 1 of 2
public_shtml
Posted: Mon Aug 17, 2015 7:48 pm
by jgriggs
Hello,
How does the public_shtml folders work? I can't seem to get the public_shtml folder to work and nothing shows at https
Juston
Re: public_shtml
Posted: Mon Aug 17, 2015 9:59 pm
by tjebbeke
When you install your SSL certificate you can choose which folder is loading, public_html or public_shtml. I don't know why anyone would want to separate (HTTP -> public_html and HTTPS -> public_shtml) but it is possible.
Re: public_shtml
Posted: Tue Aug 18, 2015 1:30 am
by jgriggs
tjebbeke wrote:When you install your SSL certificate you can choose which folder is loading, public_html or public_shtml. I don't know why anyone would want to separate (HTTP -> public_html and HTTPS -> public_shtml) but it is possible.
Thanks for the info. I dont want to seperate them, I'm just trying discover how to use it properly
Re: public_shtml
Posted: Tue Aug 18, 2015 11:50 pm
by jgriggs
tjebbeke wrote:When you install your SSL certificate you can choose which folder is loading, public_html or public_shtml. I don't know why anyone would want to separate (HTTP -> public_html and HTTPS -> public_shtml) but it is possible.
Do I need to install an SSL cert before I can use files in the public_shtml folder?
I uploaded files to that folder, but when I browse to
https://mydomain I get the following error
Access denied
The server has denied your browsing request.
Please make sure you have the permission to access this page.
Error code 102 (net::ERR_CONNECTION_REFUSED)
Re: public_shtml
Posted: Wed Aug 19, 2015 10:50 am
by tjebbeke
Yes you need to create an SSL first.
Re: public_shtml
Posted: Wed Aug 19, 2015 2:58 pm
by jgriggs
tjebbeke wrote:Yes you need to create an SSL first.
okay got that done.
Does it matter if the files are in public_html or public_shtml?
I'm assusing I would want everything in shtml in order to take full advangtage of ssl?
Re: public_shtml
Posted: Wed Aug 19, 2015 3:16 pm
by abad
shtml is only useful, if you want to display different website than for non-SSL. If you want to display the same content, you will have to use public_html because http loads files from public_html.
Re: public_shtml
Posted: Wed Aug 19, 2015 3:43 pm
by jgriggs
abad wrote:shtml is only useful, if you want to display different website than for non-SSL. If you want to display the same content, you will have to use public_html because http loads files from public_html.
Gotcha. I think I have everything wiorking...
Question, if I wanted to change the default directory for the domain name - for instance if I wanted to bring the site down for maintenance for a bit and wanted to show the end users a static page - where in the cpanel would I do that.
Re: public_shtml
Posted: Thu Aug 20, 2015 12:00 pm
by VaishnaviK
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...
Re: public_shtml
Posted: Thu Aug 20, 2015 4:39 pm
by jgriggs
okay got that, but now trying to do my SSL Cert from Godaddy, by following
http://forum.vestacp.com/viewtopic.php? ... SSL#p27911
I keey getting this:
I cant figure out what I'm doing wrong