computer:server:httpd
這是本文件的舊版!
HTTPD
Apache
- mod_rewrite
RewriteEngine on
RewriteCond %{HTTP_COOKIE} !.*na3_base=danchi.* [NC]
RewriteRule .*\.(mp3|MP3)$ - [F]
SetEnvIfNoCase Referer "^http://home.kidwm.net/.*$" local_ref=1 SetEnvIfNoCase Referer "^http://base.kidwm.net/.*$" local_ref=1 SetEnvIfNoCase Cookie "na3_base" local_ref=1 SetEnvIfNoCase User-Agent ^$ bad <FilesMatch "\.(mp3)"> Order Allow,Deny Allow from env=local_ref Allow from 127.0.0.1 </FilesMatch>
log
- Logs Rotate For Windows
CustomLog "|bin/rotatelogs.exe logs/access.log 86400" combined
htaccess
NGiNX
- Install
./configure --user=www-data --group=www-data --with-http_ssl_module --with-http_realip_module make sudo make install
- Reload Configuration
/usr/local/nginx/sbin/nginx -t /usr/local/nginx/sbin/nginx -s reload
工具
Suite
Proxy
Cache
-
- Memcached
工具
computer/server/httpd.1598084075.txt.gz · 上一次變更: 2020/08/22 08:14 由 wm
