
apache
莫冲
TO Be SIMPLE & STUDPID
展开
-
apache 反向代理设置
参考http://helpful.knobs-dials.com/index.php/Apache_config_and_.htaccess_-_URL_rewriting#Server_redirecting.2Fproxying_.28internal.29http://shiningray.cn/proxypass-directive-in-apache.html不能再htacce原创 2017-03-28 14:27:06 · 755 阅读 · 0 评论 -
apache启动端口被占用解决办法
sudo service apache2 restart 报错 * Restarting web server apache2 (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80(98)...原创 2016-09-30 10:17:41 · 511 阅读 · 0 评论 -
apache logs rotate to s3
使用s3cmdhttp://www.dowdandassociates.com/blog/content/howto-install-aws-cli-amazon-simple-storage-service-s3-s3cmd/http://www.dowdandassociates.com/blog/content/howto-rotate-logs-to-s3/https:...原创 2016-08-23 16:10:12 · 244 阅读 · 0 评论 -
ubuntu下设置虚拟domain
参考:http://www.cnblogs.com/ylan2009/archive/2012/02/25/2368028.htmlln 命令的学习http://blog.youkuaiyun.com/conowen/article/details/7251128什么是vhost?Vhost是apache服务的虚拟主机,通过配置不同的vhost,可以在同一台apache主机上运...原创 2015-08-05 14:20:01 · 521 阅读 · 0 评论 -
htaccess添加gzip压缩
在.htaccess中添加如下代码[code="java"] AddOutputFilter DEFLATE html xml php jpg png js css[/code]之所以发现这个,是因为用了YSLOW,提示Grade F on Compress components with gzip获得了F等级,添加gzip后,立马变成了A。gzip还是很有用的...原创 2014-09-11 17:16:59 · 435 阅读 · 0 评论 -
apache 反向代理设置
参考http://helpful.knobs-dials.com/index.php/Apache_config_and_.htaccess_-_URL_rewriting#Server_redirecting.2Fproxying_.28internal.29http://shiningray.cn/proxypass-directive-in-apache.html不能再h...原创 2014-09-04 17:02:33 · 152 阅读 · 0 评论 -
htaccess配置
问题:想让某个网站只能本地和指定的域名能访问。解决办法:通过htaccess设置访问控制权限apache的使用指南手册说优先使用LimitExcept,如下A section should always be used in preference to a section when restricting access, since a section provides pr...原创 2013-08-15 10:21:40 · 131 阅读 · 0 评论 -
apache ab測試說明
轉載至 :http://cqfish.blog.51cto.com/622299/138726最近在做webservices,得到的数据是从德国那边的服务器。要将这些数据整合到现在网站中去。不知道性能如何。就做个压力测试。现在有些压力测试工具都是收费的。在开源的apache中自带个ab工具。就在C:\Apache2. ...最近在做webservices,得到的数据是从德国那边的服...原创 2014-01-13 14:56:32 · 109 阅读 · 0 评论 -
apache更改主站目录
在php开发过程中,安装的apache的默认目录是在/var/www/,这个目录下有时会有用户权限,比如使用php上传文件到项目目录下时会有权限,这样就不能对所上传的文件进行修改,此时可以通过修改apache2的网站默认目录,这样就避免了上述出现的问题。更改过程比较简单,只需要对apache2的配置文件进行修改就可以了sudo gedit /etc/apache2/sites-enabled原创 2017-03-28 14:39:34 · 570 阅读 · 0 评论 -
apache启动端口被占用解决办法
sudo service apache2 restart 报错 * Restarting web server apache2 (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80(98)Ad原创 2017-03-28 14:39:26 · 2787 阅读 · 0 评论 -
apache logs rotate to s3
使用s3cmdhttp://www.dowdandassociates.com/blog/content/howto-install-aws-cli-amazon-simple-storage-service-s3-s3cmd/http://www.dowdandassociates.com/blog/content/howto-rotate-logs-to-s3/https://www原创 2017-03-28 14:37:58 · 888 阅读 · 0 评论 -
CORS 远程请求
不同域的远程访问之前是用jsonp,但是只能支持get请求,而且写法也很恶心。现在HTML5都来了,应该优先用CORS前端请求代码function createCORSRequest(method, url) { var xhr = new XMLHttpRequest(); if ("withCredentials" in xhr) { // 此时即原创 2017-03-28 14:29:45 · 305 阅读 · 0 评论 -
apache更改主站目录
在php开发过程中,安装的apache的默认目录是在/var/www/,这个目录下有时会有用户权限,比如使用php上传文件到项目目录下时会有权限,这样就不能对所上传的文件进行修改,此时可以通过修改apache2的网站默认目录,这样就避免了上述出现的问题。更改过程比较简单,只需要对apache2的配置文件进行修改就可以了sudo gedit /etc/apache2/sites-enab...原创 2016-09-30 10:26:37 · 249 阅读 · 0 评论