Webserver

apache2 – how to hide version number

How to hide the apache2 version number. Due to security reasons it is recommended to hide all of the server versions at Linux software. #add this to the end of the file nano /etc/apache2/apache2.conf ServerSignature Off

SSL_ERROR_RX_RECORD_TOO_LONG

Apache2 Error code: SSL_ERROR_RX_RECORD_TOO_LONG An error occurred during a connection to monitoring.mattionline.lan. SSL received a record that exceeded the maximum permissible length. Solution #the https vhost was disabled. had to activate it manually a2ensite default-ssl systemctl restart apache2

apache2 – reverse proxy configuration file

Configuration of a reverse proxy from the apache2 webserver to another webserver / website: a2enmod proxy a2enmod proxy_http nano /etc/apache2/sites-available/000-default.conf <VirtualHost *:80>         ProxyPreserveHost On         ProxyPass / http://192.168.2.132:3000/         ErrorLog ${APACHE_LOG_DIR}/error.log         CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>

apache2 – error after upgrade to ubuntu 16.04

apache2[1204]: Invalid command ‚php_flag‘, perhaps misspelled or defined by a module not included in the server configuration Solution: apt-get remove libapache2-mod-php5 a2dismod php5 apt-get install libapache2-mod-php7.0

Debian Jessie – Webserver nginx php5-fpm

apt-get install nginx php5 php5-fpm php5-mysqlnd nano /etc/nginx/nginx.conf user mattionline; server_tokens off; nano /etc/php5/fpm/pool.d/www.conf user = mattionline group = mattionline ;listen = /var/run/php5-fpm.sock listen = 127.0.0.1:9000 listen.allowed_clients = 127.0.0.1 nano /etc/nginx/php-fpm.conf location ~ \.(php)$ { fastcgi_keep_conn on; fastcgi_pass 127.0.0.1:9000; fastcgi_index …

Debian Jessie – Webserver nginx php5-fpm Weiterlesen »

Nach oben scrollen