我在Debian 5.0和Apache2上托pipe一个网站。 今天我的一个网站closures了,Apache说找不到目录。 我find了/ var / www / site现在/ var / lock / site中的文件和整个站点。 所有的文件都存在。 我很困惑,但我想我只是把它移回去。 mv / var / lock / site / var / www 一切看起来都很好…除了只有目录移动和文件似乎丢失! 我正在从备份恢复,但我真的很想知道发生了什么事以及我的文件在哪里(备份是几天前)。 谢谢你的帮助!
希望在正确的地方..所以我已经loadbalancer(LB)和两个Apaches(A1和A2)下面。 他们都有公有IP。 现在我的问题是, 客户端请求一个网站 – >请求去LB – >请求去A1。 现在我认为回应是一样的低谷LB. 那么在A1和A2中,LB会生成两个Apaches的输出stream量? 是否正确,或者我可以直接从Apache(A1或A2)强制响应而不触及LB出站stream量? 有些洞察力会是grat,tnx。
我正在使用共享的networking托pipe服务。 运行phpinfo,我可以看到Server API显示CGI / FastCGI而不是Apache 2 Handler。 在这篇文章中: http : //docs.joomla.org/Should_PHP_run_as_a_CGI_script_or_as_an_Apache_module%3F 它说'如果你的服务器被configuration为以PHP模式运行PHP,那么你可以select使用php.ini或Apache .htaccess文件,但是,如果你的服务器在CGI模式下运行PHP,那么你将只有因为Apache已经不再完全控制PHP了,所以select在本地使用php.ini文件来更改设置。 我觉得奇怪的是我创build的.htaccess中的重写规则在CGI模式下运行的时候一直很好。 为什么发生这种情况?
我设置Apache来监听端口8000。 它从127.0.0.1工作正常,但端口8000上的IP地址不起作用 IP地址是我的路由器,我已经把端口8000转发到我的盒子 nmap没有显示端口8000,我想我需要一个iptables规则来打开这个 到目前为止我跑了: iptables -I INPUT -p tcp -m tcp –dport 8000 -j ACCEPT iptables-save 但是这似乎不工作到目前为止..任何提示?
我有这样的iptablesconfiguration: iptables -F INPUT iptables -F OUTPUT iptables -F FORWARD iptables -P INPUT DROP iptables -P OUTPUT DROP iptables -P FORWARD DROP iptables -A INPUT -p tcp –dport 22 -j ACCEPT iptables -A OUTPUT -p tcp –sport 22 -j ACCEPT iptables -A INPUT -p tcp –dport 80 -j ACCEPT iptables -A OUTPUT -p tcp –sport […]
这两种情况有什么区别: <VirtualHost 127.0.0.1:80> ServerName localhost DocumentRoot "/home/sfprojects/jobeet/web" DirectoryIndex index.php <Directory "/home/sfprojects/jobeet/web"> AllowOverride All Allow from All </Directory> </VirtualHost> 简而言之: DocumentRoot "/home/sfprojects/jobeet/web" DirectoryIndex index.php <Directory "/home/sfprojects/jobeet/web"> AllowOverride All Allow from All </Directory> 似乎都为我工作。
RewriteCond %{REQUEST_URI} \..+$ RewriteCond %{REQUEST_URI} !\.html$ RewriteRule .* – [L]
看看这个: http://img.skitch.com/20100214-pf95t9dpywxqgne7wrk65nnhq5.png 看了一下,你可以说我需要优化或我做得好吗?
我正在努力,所以我的Apache网页将在一个chroot监狱。 根据https://wiki.ubuntu.com/ModChroot ,我build立了chroot监狱。 但是,当我重新启动Apache我得到以下错误logging: [error]没有这样的文件或目录:无法创build/var/chroot/apache/var/run/apache2.pid [错误] apache2:无法login到文件/ var / chroot / apache / var / run / apache2。 PID /var/chroot/apache/var/run/apache2.pid是有777权限 如果我disable mod_chroot网页正确地从/ var / chroot / apache / var / www目录下发送。
我有一个静态IP通过我的防火墙路由请求。 这台服务器有一个通配的SSL证书,由于某种原因决定不再需要工作。 在我的httpd.conf中,我有以下服务器configuration: ServerName 10.200.2.15 NameVirtualHost 10.200.2.15:443 听10.200.2.15:443 我有mod_ssl启用等,我有一个虚拟主机configuration: <VirtualHost 10.200.2.15:443> ServerName v3.mysite.com ServerAdmin [email protected] DocumentRoot“/ Library / WebServer / Documents” DirectoryIndex index.html index.php login.jhtml ErrorLog“/ private / var / log / httpd / error_log” <IfModule mod_ssl.c> SSLEngine开启 SSLLog“/ private / var / log / httpd / ssl_engine_log” SSLCertificateFile“/etc/certificates/_.mysite.com.crt” SSLCertificateKeyFile“/etc/certificates/private.key” SSLCertificateChainFile“/etc/certificates/gd_bundle.crt” SSLCipherSuite“ALL:!ADH:RC4 + RSA:+ HIGH:+ […]