Category Archives: Apache
Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions
If your server is set with both FollowSymLinks and SymLinksIfOwnerMatch off, then rewrite rules will stop working, and cause a 403 forbidden error message. You’ll also see something like this in your apache error log. [rewrite:error] [pid 19455] [client 127.0.0.1:55311] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden …
Missing account on the “List Accounts” in the WHM on a cPanel server
If you have a domain that you know is on a server, but for some reason, when you click on List Accounts in the WHM, it does not show up, check the following locations to make sure the domain exists in them all. /etc/trueuserdomains /etc/userdomains /var/cpanel/users/USERNAME (replace USERNAME with their cpanel username) /etc/httpd/conf/httpd.conf or …
How to change the document root of a cPanel website
If you want to change the document root to a site on your server, you will need to have root access to the server via SSH command line. This is not something that can be done via the WHM or cPanel. Open the following file in your favorite editor /var/cpanel/userdata/USERNAME/DOMAIN.COM (replace username and domain.com with …
Installing Thrive Tracker gives this error “Unknown error (ajax)”
When installing thrive, and you get to the page where it creates the database tables, this error may come up. The reason this happens is if you have your apache timeout set too low and it takes Thrive longer to create the databases, then apache is willing to wait for. To correct this, you need …
Add far future expiry header to your site
Adding far future expires headers will help to speed up your site by having cache last longer on the viewers web browser. It will not help the first time they load your site, but it will improve the loading speed every visit after that. You can set when cache expires by Seconds, Minutes, Hours, Days, …
Force http to redirect to https via a .htaccess file
There are many ways you can force visitors of your site to use https regards of what they type into their address bars. Here are a few ways you can do this from your .htaccess file If https is not on, then rewrite the url to https RewriteEngine On RewriteCond %{HTTPS} !^on$ RewriteRule (.*) https://yourdomain.com/$1 …
How to block wordpress logins and xmlrpc with no referer
If you are getting flooded with wordpress login attempts by a suspected hacker, you can add the following rule to mod security in /usr/local/apache/conf/modsec2.user.conf This rule will block any access to wp-login.php that does not contain a referer #block wp-lgoin.php with no referer <Locationmatch “/wp-login.php”> SecRule REQUEST_METHOD “POST” “deny,status:401,id:5000130,chain,msg:’wp-login request blocked, no referer’” SecRule &HTTP_REFERER …
Mod_security and cPanel temp URL’s
If you have a customer that is getting ModSecurity errors when accessing parts of their site using a temp URL like this: http://host.servername.com/~theirusername You may want to whitelist the rule that is blocking the page, however you can not just whitelist this on the users account itself. You need to make sure the whitelist happens …
Unexpected T_STRING in an Apple iWeb site.
If you have a customer using Apple IWEB, you might come across an error that looks something like this: Parse error: syntax error, unexpected T_STRING in /home/username/public_html/index.html on line 1 To correct this, you need to turn short_open_tags off in PHP. Here are 2 ways to do this: .htaccess php_flag short_open_tag off — OR …
- English Support
- 24/7 x 365
- Branded Support
- Reduced Overhead
- Linux Experts
- Friendly Staff