我在我的Apache服务器上有以下目录: root/dir1/ root/dir2/ root/dir3/… 是否有可能使我的子目录(dir1,dir2,dir3)的内容“好像”直接在root/ ? 我正在寻找一个dynamic创build的目录解决scheme。
如果你把它放在你的.htaccess文件中 Options MultiViews 你有这些文件 stuff/ howto.html index.php items.php 那么所有这些url都可以工作 /stuff/ # brings up /stuff/index.php. # Yes, this would have worked `# even without MultiViews /stuff/howto # brings up /stuff/howto.html. #`This would not have # worked without MultiViews, # although you could have done # it with a Rewrite rule, too /stuff/items # brings up /stuff/items.php […]
我刚刚安装了Apache 2.2,并试图在相同的服务器configuration上托pipe两个域。 我首先创build了一个虚拟主机( a.com ),并debugging了我的configuration以使其正常工作。 当我尝试添加虚拟主机b.com并尝试访问它时,我所得到的只是a.com的正确页面。 两个虚拟主机都指向相同的静态IP地址。 服务器在VPS上运行CentOS。 /usr/local/apache2/conf/httpd.conf具有基本的configuration,并且部分包含在下面,但是我有httpd.conf Include第二个文件, clients.conf又Includes每个站点的configuration,这是在不同网站的主目录。 (每个网站都有自己的帐户,目录web , scripts , data和config 。) httpd.conf中: Listen 80 NameVirtualHost [ip] # […] Include /usr/local/apache2/conf/clients.conf clients.conf: Include /home/[a]/conf/apache/vhost.conf Include /home/[b]/conf/apache/vhost.conf /home/[a]/conf/apache/vhost.conf <VirtualHost [ip]> ServerName www.[a].com ServerAlias [a].com ServerAdmin [me]@[a].com DocumentRoot /home/[a]/web/home ErrorDocument 404 "http://www.[a].com/error/?404" <Directory /home/[a]/web/home> Options -Indexes FollowSymLinks # Don't allow any .htaccess […]
我有一个Apache服务器中的两个虚拟主机,我想做的事情,但我不知道是否有可能。 事情是我有主要的应用程序开发和ruby和博客是在wordpress。 所以现在我有这样的东西: example.com和blog.example.com 我想要做的是,对www.example.com/blog的所有请求都由blog.example.com提供,但是不会执行redirect(即,我不希望用户看到URL中的更改) 我到目前为止所尝试的是在VirtualHost中做一个代理: <Location /blog> ProxyPassReverse http://blog.example.com ProxyPassReverse http://blog.example.com:80 RewriteEngine On RewriteRule blog/(.*)$ http://blog.example.com/$1 [QSA,P,L] </Location> 它可以工作,但是一旦我在另一个应用程序中,所有链接都在blog.example.com中,而不是在example.com/blog中。 你知道这个解决方法吗? 感谢您的帮助。
我在我的Mac上运行Zend Server,在本地PHP(Zend Framework)项目上工作。 我从来没有遇到过这个问题,但我的代码中有一些行在加载页面时在我的Safari控制台中触发错误: 操作无法完成。 (kCFErrorDomainCFNetwork错误303.) Apache错误日志有这样的: [通知]孩子pid 17822退出信号总线错误(10) 但是,通过改变一些不重要的代码(注释行,重新排列行,更改一个string的内容)的一些细节,它会随机地工作(或不工作)。 相同的代码在我的同事的MAMP服务器和我们的Ubuntu开发服务器上工作正常。 我完全卡住了。 我只是假设在Zend Server中存在导致此问题的某种错误。 有什么办法可以解决吗?
我configuration了openvpn(OpenVPN 2.1.0)和apache 2(分别在443和10443(使用modssl)监听),这两个应用程序听好了: tcp 0 0 xxxx:10443 0.0.0.0:* LISTEN 1130/apache2 tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 7860/openvpn 但是,由于我想确定的一个原因,端口共享选项configuration如下(公共IP)不起作用: port 443 port-share xxxx 10443 openvpn日志中的错误是: TCP connection established with [AF_INET]yyyy:3123 Socket Buffers: R=[131072->131072] S=[131072->131072] TCPv4_SERVER link local: [undef] TCPv4_SERVER link remote: [AF_INET]yyyy:3123 yyyy:3123 Non-OpenVPN client protocol detected PORT SHARE PROXY: connect to port-share server failed yyyy:3123 […]
我的网站遇到了一个奇怪的问题。 如果我浏览网站内的链接,一切都很好,页面加载速度。 如果我在任何页面上点击浏览器上的刷新button,页面加载速度就会很慢,并且会挂起(而不是每次刷新时),并且会一直加载。 尽pipe地址栏上有旋转重新加载图标,但是萤火虫不会显示任何挂起的连接。 我在MacOSX / Win / Linux上尝试了FF / Chrome,并且我得到了相同的行为,所以我想是与我的Web服务器相关的东西。 是否有可能在调整Apache设置(如KeepAlive / MaxClients)上犯了一些错误? 我目前使用Apache2与prefork模块,在一个专用的8核心i7服务器与16GB内存。 Prefork设置: <IfModule mpm_prefork_module> ServerLimit 500 StartServers 40 MinSpareServers 40 MaxSpareServers 100 MaxClients 400 MaxRequestsPerChild 4000 </IfModule> 其他/ KeepAlive设置: Timeout 300 KeepAlive On MaxKeepAliveRequests 500 KeepAliveTimeout 4 有没有可能这些问题与这些设置完全无关,所以我问你:你能否在正确的地方寻找我,或者如何进行进一步的testing以了解如何解决这个问题?
我们有一个Apache服务器负载均衡请求下载到两个不同的服务器。 mod_jk错误日志被填充以下types的错误 [Mon Feb 13 16:59:02.948 2012] [19453:139726932305664] [error] ajp_process_callback::jk_ajp_common.c (1800): ajp_unmarshal_response failed [Mon Feb 13 16:59:02.948 2012] [19453:139726932305664] [info] ajp_service::jk_ajp_common.c (2540): (mrxdf3) sending request to tomcat failed (recoverable), because of server error (attempt=1) [Mon Feb 13 16:59:03.048 2012] [19453:139726932305664] [info] ajp_send_request::jk_ajp_common.c (1490): (mrxdf3) did not receive END_RESPONSE, closing socket -1 [Mon Feb 13 16:59:03.054 […]
我目前正在尝试使用石墨wiki的这些说明在gentoo盒子上安装石墨0.9.9。 基本上,它使用apache和mod_wsgi前置石墨。 一切似乎都进行得很顺利,除了apache /石墨webapp似乎从来没有回复网页浏览器的响应(浏览器不断地等待加载页面)。 我打开了石墨debugging信息,但是日志文件中唯一的消息就是这个,在info.log中一遍又一遍地重复(pid总是在变化): Thu Feb 23 01:59:38 2012 :: graphite.wsgi – pid 4810 – 重新加载search索引 这些说明已经在我之前在Ubuntu机器上设置石墨。 我怀疑,mod_wsgi是死亡,但我已经证实,mod_wsgi工作正常时,不提供石墨web应用程序。 这是我的graphite.conf vhost文件的样子: WSGISocketPrefix /etc/httpd/wsgi/ <VirtualHost *:80> ServerName # Server name DocumentRoot "/opt/graphite/webapp" ErrorLog /opt/graphite/storage/log/webapp/error.log CustomLog /opt/graphite/storage/log/webapp/access.log common # I've found that an equal number of processes & threads tends # to show the best performance for […]
我想testing我的应用程序需要使用和不使用SSL。 如果可以为本地应用程序( http:// localhost:3000 )设置SSL,请让我知道一些build议,我的操作系统是Ubuntu 10.4。