我使用Apache2-mpm-prefork和apache2-mod-php5运行Ubuntu 10.10服务器,我正在使用: User www-data Group www-data 在configuration文件中,当执行ps -efH我得到这些行: root 1497 1 0 09:43 ? 00:00:00 /usr/sbin/apache2 -k start root 1530 1497 0 09:43 ? 00:00:00 /usr/sbin/apache2 -k start www-data 1531 1497 0 09:43 ? 00:00:00 /usr/sbin/apache2 -k start www-data 1532 1497 0 09:43 ? 00:00:00 /usr/sbin/apache2 -k start 显然,一个subprocess正在运行,但为什么? 这也发生在我自己编译Apache的时候,我找不到一个理由,而且我还不知道这个root-child进程是否正在服务请求。
多年来,我一直在使用Apache的Apache,既作为独立安装(Windows和Linux),也作为Windows上的WAMP堆栈的一部分。 今天,我决定尝试Zend Server CE ,并感到惊讶的是,它提供了两件事情: 最初的Apache服务监视器,它允许我重新启动Apache Zend Controller应用程序,它有一个“重新启动PHP”button 我从来没有想过“重新启动PHP”,因为我习惯将PHP看作是Apache模块。 AFAIK,没有办法“重新启动PHP”,但是通过重新启动Apache来应用新的PHP设置。 “重启PHP”只是在幕后重启Apache,还是在做别的事情?
查看thc-ssl-dos,只会启用启用重新协商的SSL启用网站。 我一直在检查几个服务器,并有以下问题; 第一; 在我的Apache安装中,重新协商是默认禁用的,所以在什么情况下我可以启用它? 其次; 我有一个有几个虚拟主机的开发盒,我怎么能启用它(只对默认网站),所以我可以testing这种攻击的有效性? 我在Debian上运行apache2。 谢谢。
我已经开始为在Ubuntu上运行Apache2和PHP的队友做一些工作,并且CPU正在发挥作用。 我真正关心的是使用Micro实例是否适合面向生产/公众的网站。 我的直觉是没有,使用标准或高级实例将是一个更好的主意,但我只是开始在AWS中玩,我只是想看看别人做了什么。 现在他确实运行了一些Load Balanced,但他不得不closures实例,我将着手设置Cloudwatch为他自动执行此操作,直到能够更好地处理他的应用程序引擎盖。 我知道这是一个非常模糊的问题,我没有提供很多关于设置的细节,但是我仍然在加快他的网站。
我有几个客户端证书,我的Apache httpd服务器要求客户端(使用http://www.garex.net/apache/上的说明)。 我想有一个身份validation,也进行身份validation,并只允许客户端证书匹配用户名/密码组合。 例如,如果我有两个客户端证书与CN user1和user2和.htpasswd文件 user1:passwordA user2:passwordB 我想喜欢的东西 SSLUserName %{SSL_CLIENT_S_DN_CN} AuthName "Please enter your username and password" AuthType Basic AuthUserFile /path/.htpasswd require valid-user 但是,尝试这将导致500错误。 我能做什么?
我正在运行带有Apache2和多个虚拟域的Web服务器。 此外,还有一个这些域的邮件服务器,暴露一个Web界面。 对于每个虚拟域example.com ,我都有指向我的webmail界面(Roundcube)的子域mail.example.com 。 它适用于以下configuration: <VirtualHost *:80> ServerAdmin [email protected] ServerName mail.example.com ServerAlias mail.vname1.com, mail.vname2.com, mail.vname3.com, #… DocumentRoot /srv/www/mail/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /srv/www/mail> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/mail.error.log LogLevel warn CustomLog /var/log/apache2/mail.access.log combined </VirtualHost> 但是,对于每个新客户,我都会将相应的域名添加到ServerAlias es列表中。 有没有一种方法可以自动将所有mail.*子域与/srv/www/mail/ ?关联起来
我一直有一些问题,build立我的Apache Web服务器,只通过HTTPS提供页面。 我想这个星期早些时候我已经钉了它,但经过一番修改之后,似乎我又把它弄坏了,我不知道我到底什么时候把它弄坏了。 我的设置产生这个输出,因此我的configuration语法应该是可以的: # apache2ctl -t -D DUMP_VHOSTS VirtualHost configuration: 192.168.0.1:80 is a NameVirtualHost default server cal.example.com (/etc/apache2/sites-enabled/99-davical:2) port 80 namevhost cal.example.com (/etc/apache2/sites-enabled/99-davical:2) port 80 namevhost proius.example.com (/etc/apache2/sites-enabled/proius:1) port 80 namevhost slnew.example.com (/etc/apache2/sites-enabled/slnew:1) port 80 namevhost webmail.example.com (/etc/apache2/sites-enabled/webmail:1) 192.168.0.1:443 is a NameVirtualHost default server proius.example.com (/etc/apache2/sites-enabled/proius:10) port 443 namevhost proius.example.com (/etc/apache2/sites-enabled/proius:10) port 443 namevhost […]
我试图在Apache上使用mod_wsgi设置两个独立的Django站点。 第一个网站工作正常,但第二个网站cupaday.dyndns.biz给出了一个403: [Tue Feb 07 22:32:57 2012] [error] [client 68.48.6.208] (13)Permission denied: access to / denied有人看到有什么错? 我读了关于部署多个虚拟服务器,大多数人指出,确保有一个允许所有人的目录指令。 我试图设置这个path到我的应用程序,到wsgi目录和实际的。 就像我说的第一个网站snaganitem工作正常。 有谁知道我可以解决这个问题? 或者有没有办法看到403 errror的详细版本? 谢谢。 NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin [email protected] ServerName snaganitem.com ServerAlias www.snaganitem.com LogLevel warn ErrorLog /var/log/httpd/error.log CustomLog /var/log/httpd/access.log combined WSGIScriptAlias / /home/snaganitem/hackpages/apache2/django.wsgi <Location "/static"> SetHandler None </Location> <Directory /home/snaganitem/hackpages/apache2> Order allow,deny Allow from all […]
我已经尝试了大约1000倍的东西,但我似乎无法弄清楚为什么一个简单的Django网站使用apache 2.2.14 / wsgi latest / django 1.3很慢。 我已经证实了这个问题不是我们的数据库通过打开mysql慢查询日志logging。 我已经回顾了另一个100倍的wsgi守护进程configuration设置,但仍然不明白为什么runserver目前比apache更快! 这里是我的Apacheconfiguration,让我知道如果有其他项目将是有用的! WSGIDaemonProcess xxx display-name=xxx group=www-data user=www-data processes=25 threads=1 <VirtualHost *:80> ServerName www.xxx.com ServerAlias xxx.com ServerAlias localhost ServerAdmin [email protected] RewriteEngine Off RewriteCond %{HTTP_HOST} ^xxx\.com$ [NC] RewriteRule ^(.*)$ http://www.xxx.com$1 [R=301,L] RewriteCond %{REQUEST_URI} ^/login/$ RewriteRule /login https://%{HTTP_HOST}%{REQUEST_URI} [R,L] RewriteCond %{REQUEST_URI} ^/signup/ RewriteRule /signup https://%{HTTP_HOST}%{REQUEST_URI} [R,L] ErrorLog /var/log/apache2/xxx-error.log LogLevel […]
我已经configuration了apache2和mod_auth_kerb。 我以这种方式设置了我的.htaccess # cat .htaccess AuthType Kerberos AuthName "Domain login" KrbAuthRealms DOMAIN.COM KrbMethodK5Passwd on Krb5KeyTab /etc/httpd/httpd.keytab require valid-user 当我在IE中打开页面时,在apache日志中出现以下错误: gss_accept_sec_context() failed: Miscellaneous failure (, Key version number for principal in key table is incorrect) 然后我可以设置密码和通过基本authenticationlogin,这是完全没问题的。 但是我不能通过票证进行validation。 # klist -k /etc/httpd/httpd.keytab Keytab name: FILE:/etc/httpd/httpd.keytab KVNO Principal —- ————————————————————————– 6 host/[email protected] 6 host/[email protected] 6 host/[email protected] 6 host/[email protected] […]