![]() SSLCertificateChainFile /etc/ssl/example/example_com.ca-bundleĭo not forget to enable your virtual host, example : sudo a2ensite. SSLCertificateKeyFile /etc/ssl/example/example.key SSLCertificateFile /etc/ssl/example/example_com.crt ServerAlias .XX # here write ip adresss of your web siteĬustomLog $/access.log combined ![]() I just copied my nf as and put below the content cd /etc/apache2/sites-availableĬp nf Ĭontent of vhost file The solution was to simply replace the IP with the domain name for all virtualhost settings, except for the one which needs to redirect/restrict direct IP access. I'd be grateful if someone can shed some light on what am I doing wrong here. The "Redirect 403 /" part is not working since installing the SSL certificate. IP and names were substituted with generic ones. ScriptAlias /cgi-bin/ /home/rotate/public_html/cgi-bin/ĮrrorDocument 403 "Sorry, direct IP access not allowed." # User rotate # Needed for Cpanel::ApacheConf ServerAlias DocumentRoot /home/rotate/public_html If this resolves the issue, follow these steps to isolate the browser add-on that is causing the issue: a) Click Tools, and then click Internet Options. First, create a text file named htaccess.txt. e) Click on Internet Explorer (No Add-ons). I have absolutely no idea what was altered in the nf file but now the redirect setting does not work even if I uninstall the SSL certificate. This solution will prevent direct URL access to the files in your list on Apache web servers, which are most. This is required when an organization have external users or anonymous users. I've also found one solution via apache virtual hosts config which was working fine up until I installed a SSL certificate through CPanel. A user with read access can not modify any of the content or cannot view restricted areas but there is still requirements from the business users to restrict users from accessing list and libraries pages, all site content page and many other internal pages. You should test your changes by trying to visit your site from an allowed and denied IP address.I want to restrict direct IP access to my website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |