Category: Webservers

Redirect HTTP to HTTPS on IIS

If you need to force HTTPS on the entire site then add the following to the web.config file:

If you want to force HTTPS on a specific URL, then use this instead:

     

Read More »

Redirect HTTPS to HTTP

If you want to redirect all HTTPS traffic to HTTP then add the following to your .htaccess file:

 

Read More »

Block Access To .git And .svn Folders

On Nginx add the following to each “server” block:

And the for Apache add the following to the VirtualHost block:

Read More »

Set X-Robots-Tag Header On Plesk/Nginx

On a Plesk server with Nginx enabled here are the steps to setup custom X-Robot-Tag headers has described here: https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag?csw=1 In Plesk control panel: 1. Select the domain 2. Click Web Server Settings 3. Scroll down to nginx settings 4. If you have “Serve static files directly by nginx” checked (which I recommend), you’ll need to remove the file extensions to which you’re going to apply headers. In this example remove “pdf” from the list. 5. In the “Additional nginx directives” field enter:

6. Click OK button to save changes.

Read More »

maxclients.sh Script For Apache

This script attempts to look at Apache memory usage and recommend a stable setting for MaxClients.

 

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.