2016年3月7日 星期一

[Ubuntu] - 移掉 Web Server Apache2 / Web Script PHP 相關資訊



@Before


root@ip-172-31-30-43:/etc/apache2# curl -LIv https://xxxx.com.tw
HTTP/1.1 200 OK
Date: Mon, 07 Mar 2016 08:02:12 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
Content-Type: text/html



# vim /etc/apache2/conf-available/security.conf
ServerSignature Off
ServerTokens Prod

# vim /etc/php5/apache2/php.ini
expose_php = Off

# service apache2 restart

@ After

# curl -LI https://xxxx.com.tw
HTTP/1.1 200 OK
Date: Mon, 07 Mar 2016 08:05:29 GMT
Server: Apache
Content-Type: text/htm





沒有留言:

張貼留言