标签 Nginx 下的文章

vi /etc/nginx/nginx.conf server { listen 80 default_server; listen [::]:80 default_server; server_name _; root /usr/share/nginx/html; //增加下面一行 index index.php index.html index.htm; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location / { } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html {

Tags: centos MySQL PHP Nginx

Read more

NGINX屏蔽 if ($http_user_agent ~ AAA) { return 403; } .htacess文件屏蔽 RewriteEngine on RewriteCond %{HTTP_USER_AGENT} ^AAA RewriteCond %{HTTP_USER_AGENT} ^AAA/1.0

Tags: Nginx .htacess 蜘蛛

Read more

运行goaccess输出到nginx,Tomcat日志文件applog.txt通过ftp定时上传至/var/ftp/ goaccess /var/ftp/applog.txt -o /usr/share/nginx/html/index.html -p /usr/local/etc/goaccess-tomcat.conf --real-time-html --daemonize --geoip-database=/usr/share/GeoIP/GeoLiteCity.dat 查看goaccess后台运行状态,服务端与浏览器默认通过TCP7890端口实现实时传输

Tags: centos goaccess Tomcat Nginx daemonize

Read more

V