Skip to content

PHP 实现的简易的代理服务器功能,主要用于对静态内容进行缓存。需与 SwitchySharp 之类的 proxy 管理插件配合使用才能更好地发挥作用。

k9yhuang/cdn-cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

cdn-cache

PHP 实现的简易的代理服务器功能,主要用于对静态内容进行缓存。需与 SwitchySharp 之类的 proxy 管理插件配合使用才能更好地发挥作用。

配置

在 Apache 中的配置是类似这样的:

Listen localhost:8086
<VirtualHost *:8086>
	ServerName localhost:8086
	DocumentRoot "D:/cdn-cache"
	<Location />
		Order Allow,Deny
		Allow from all
	</Location>
	DirectoryIndex agent.php
	RewriteEngine On
	RewriteRule ^/(.*)$  D:/cdn-cache/agent.php [NS,QSA,L]
</VirtualHost>

About

PHP 实现的简易的代理服务器功能,主要用于对静态内容进行缓存。需与 SwitchySharp 之类的 proxy 管理插件配合使用才能更好地发挥作用。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%