Showing posts with label httpd. Show all posts
Showing posts with label httpd. Show all posts

Wednesday, November 25, 2015

monit check process by name without pid

check process httpd
    matching "/usr/sbin/httpd"
    start program = "/etc/init.d/httpd start"
    stop program  = "/etc/init.d/httpd stop"


monit will check process by process name "/usr/sbin/httpd"

Tuesday, May 12, 2015

AH00082: an unknown filter was not added: PHP

Должно быть так
/etc/apache2/apache2.conf

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
А не так
/etc/apache2/mod-available/php5filter.conf
<Files *.php>
       SetOutputFilter PHP
       SetInputFilter PHP
</Files>

Делаем так

#<Files *.php>
#      SetOutputFilter PHP
#       SetInputFilter PHP
#</Files>

Thursday, April 30, 2015

переадресация c http на https и другой порт

RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$ [OR]
RewriteCond %{HTTP} =on
RewriteRule ^(.*)$ https://www.domain.com:8080/$1 [R=301,L]

grub2-install: error: disk `mduuid/e54081d398c6d57b4d67436f6d032162' not found

After raid 1 disk replacement faced with this issue # grub2-install /dev/sdb Installing for i386-pc platform. grub2-install: error: disk `md...