apache

Apache Force SSL https on directory

edit your .htaccess file: RewriteEngine OnRewriteCond %{SERVER_PORT} 80RewriteCond %{REQUEST_URI} DirectoryNameRewriteRule ^(.*)$ https://YourDomain.com/DirectoryName/$1 [R,L] this will force https on the directory “DirectoryName” replace DirectoryName with your directory and YourDomain.com with your domain.

Read More...

Plesk 10 Upgrade Apache2 Restart Problem – “Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down”

Plesk 10 upgrade Apache2 won’t restart – Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

Read More...

password protect directory in ubuntu plesk .htaccess .htpasswd

  so you want to password protect your apache directory so people can’t sneak a peek. you’ll need two files in your directory: .htaccess and .htpasswd .htaccess source AuthType Basic AuthName “restricted area” AuthUserFile /var/www/vhosts/YourDomain.com/httpdocs/.htpasswd require valid-user   AuthUserFile is the file path on your server to the .htpasswd file. on ubuntu + plesk 9…

Read More...