Articles of apache 2.2

临时主持一个networking应用程序

我需要为一个工作应用程序托pipe一个Web应用程序。 该应用程序依赖于一个Apache模块,这意味着我的常规虚拟主机(Dreamhost)不能支持它。 我的私人互联网连接也不是一个select。 我正在考虑在某个VPS上托pipe它。 可能有试用期的VPS主机的build议? 还是其他解决scheme

调整Apache和服务器的海量照片上传

我有一个运行在EC2平台上的Apache webserver。 它从用户接收大量的上传(大图片文件)。 问题是,上传后,我必须立即将图像转换为其他尺寸,因为它们必须在“下一页”中使用。 我select了ImageMagick,因为我注意到即使Flickr使用它( http://highscalability.com/flickr-architecture ),大约需要4秒钟来生成所有的照片尺寸。 问题是当我有50个并发用户或更多。 我做了压力testing,服务器开始变慢。 那么,有没有想法如何调整Apache的大量上传? 任何想法如何更快地做到一切?

www.abcdefg.com在apacheredirect中更改为abcdefg.com

我在Apache VirtualHost文件中的configuration是: <VirtualHost xxx.xxx.xxx.xxx:80> ServerAdmin [email protected] ServerName abcdefg.com ServerAlias www.abcdefg.com DocumentRoot /var/www/abcdefg.com/public/abcdefg/current/public/ ErrorLog /var/www/abcdefg.com/logs/error.log CustomLog /var/www/abcdefg.com/logs/access.log combined <Directory /var/www/abcdefg.com/public/abcdefg/current/public> AllowOverride all Options -MultiViews </Directory> <Location /blog> PassengerEnabled off # turn off Passenger for /blog subdirectory </Location> <Location /support> PassengerEnabled off # turn off Passenger for /support subdirectory </Location> <Location /stats> PassengerEnabled off # turn off […]

如何使用Apache的用户权限运行PHP?

作为标题,我有很多虚拟主机,我怎样才能用用户的权限运行PHP? website1 –> user1:user1 website2 –> user2:user2 website3 –> user3:user3 我读过suphp,但速度非常慢,我读了25倍的mod_php。 我可以做不同吗?

服务器规格build议

我目前有一个Ubuntu 10.04 LTS(32位)的Linode 512 VPS。 我最近打开了我的网站,吸引了很多来自社交networking的用户,而且我最近也遇到了一些CPU限制。 我每天约20k用户,今天我不得不重新启动Apache和MySQL进程几次,因为CPU使用率太高,我几乎不能input命令。 我想调整它,但我不知道是否有什么我可以做,这将帮助我解决它。 编码方面,我没有任何改变,我正在运行SQL服务器(在本地主机上)的最小数量的查询,我已经尽我所能来改善代码。 我正在运行GZip,重要的是说我的网站的主要目的是为图像提供服务。

Apache LDAP Auth空闲超时

作为安全策略的一部分,我们正在升级系统以符合,我需要设置我们的Apache LDAP身份validation15分钟的空闲超时。 也就是说,如果用户停止使用系统超过15分钟,下一次他们去使用它,他们将需要重新authentication。 这甚至有可能吗? 如果是这样,我该如何实现呢? 我的.htaccess文件中的身份validationconfiguration如下所示: AuthName "AD Authentication" AuthType Basic AuthBasicProvider ldap AuthLDAPUrl "URL" AuthLDAPBindDN "DN" AuthLDAPBindPassword "PASSWORD" AuthzLDAPAuthoritative Off require valid-user 有任何想法吗?

nginx + Apache的443端口的问题

这是我的nginxconfiguration端口443: server { listen *:443; server_name site.com; ssl on; ssl_protocols SSLv3 TLSv1; ssl_certificate /www/certs/site.com.crt; ssl_certificate_key /www/certs/site.com.key; access_log /var/log/nginx.site.com-access_log; location ~* .(jpg|jpeg|gif|png|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|xml|docx|xlsx)$ { root /www/site.com/; index index.html index.php; access_log off; expires 30d; } location ~ /.ht { deny all; } location / { proxy_pass http://127.0.0.1:81/; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-for $remote_addr; proxy_set_header Host $host; proxy_connect_timeout 60; […]

将GitHub存储库拉到/ var / www

我有一个私人的GitHub回购,我想设置我的testing服务器(LAMP)自动拉/取主分支中的文件,并把它们放在我的网站根(/ var / www)。 难道不可能创build一个shell脚本来cd到/ var / www然后运行git pull origin master? 我可以使用CRON工作吗?

301从www.example.com/thisredirect到.example.com

我想将www.example.com/this/或example.com/this/redirect到.example.com 目前在我的.htaccess文件中,我有: RewriteEngine on RewriteCond ${HTTP_HOST} ^(www\.)?example\.com/this$ RewriteRule ^(.*) http://that.example.com/$1 [R=301,L] 然而,这不适合我。

IP的请求已经过时的文件

我在一年前发布了一个应用程序,通过从我的服务器上的一些PHP脚本请求数据。 该应用程序不再做这个和PHP文件已被删除。 然而,有几个人仍然运行该应用程序,我的服务器每天获得几百MB的404错误带宽。 我有运行应用程序的人的IP地址。 有什么办法阻止他们,这样他们就不会浪费我的带宽? 我知道我可以阻止他们与阿帕奇,但会阻止他们浪费带宽? 谢谢你的帮助!