我在Windows上运行Apache2.2和Tomcat7.0。 如何设置JkMount以允许以domain.com/tomcat/nameOfWebapp的forms访问Tomcat上的任何已部署的Web应用程序? 这是我的workers.properties: # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 这里是我的httpd.conf的相关部分: LoadModule jk_module modules/mod_jk.so <IfModule jk_module> JkWorkersFile D:/servers/tomcat7.0/conf/workers.properties JkLogFile D:/servers/tomcat7.0/logs/mod_jk.log JkLogStampFormat "[%b %d %Y – %H:%M:%S] " JkRequestLogFormat "%w %V %T" JkLogLevel info JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories Alias /tomcat "D:/servers/tomcat7.0/webapps/" <Directory "D:/servers/tomcat7.0/webapps/"> AllowOverride None Allow […]
我在Windows机器上安装了Xamp服务器。 我已将follwing .htaccess文件放在一个目录中: # Original # If you modify this file then change the above line to: # Modified <IfModule mod_rewrite.c> RewriteEngine On # Certain hosts may require the following line. # If vanilla is in a subfolder then you need to specify it after the /. # (ex. You put Vanilla in /forum so […]
我已经在VMware ESX主机服务器上安装了两个安装的Ubuntu 12.04,并且在Apache上运行相同的Web页面的其他服务器的性能比Apache Loader 10.04 我注意到在12.04上构build的唯一区别是DNS的工作方式不同,所以我已经将命名服务器添加到主接口设置中了? 这可能是一个networking的问题,所以DNS或主机文件是错误的? 我知道这听起来是一个普遍的问题,但是为什么ubuntu 12.04的性能比起在ubuntu 10.04上运行的其他虚拟机的相同构build,networking和磁盘访问,加载web内容的速度缓慢呢? 如果需要,我可以添加更多的信息,但是我看不到构build中的任何错误。 谢谢
我将我的服务器从2.2升级到2.2.22。 当我打开我的网站在铬说它说成功安装和 You may now add content to the directory /var/www/html/. Note that until you do so, people visiting your website will see this page and not your content. To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf. 但是之前在服务器上托pipe的2个站点在 /var/www/vhosts/sitename/httpdocs/httpdocs 在升级期间,我遇到了一个错误 文件/ usr / lib64 / apr-1 / build下档案解压失败:cpio:rename […]
环境: Windows 2008服务器版 Netbeans 6.7.1 Glassfish 2.1 Apache 2.2.15 for win32 原始问题(几乎是固定的): 如果等待超过30秒,则发送数据的HTTP / 1.1 GET方法将失败。 我做了什么: 我把这些行添加到Apache的http.conf文件中: # # Timeout: The number of seconds before receives and sends time out. # Timeout 9000 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to […]
我使用Apache作为后端服务器和前端的nginx。 Apache监听端口8080和nginx到端口80.我所做的是有根指向公用文件夹foreach虚拟主机: <VirtualHost *:8080> ServerAdmin webmaster@localhost ServerName site.com ServerAlias site.com *.site.com DocumentRoot /var/www/site.com/public <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/site.com/public/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost> 这里是nginxconfiguration: server { listen 80; access_log /var/log/nginx.access.log; error_log /var/log/nginx.error.log; root /var/www/site.com/public; index index.php index.html; server_name site.com *.site.com; location / { […]
我已经设置了一个位置来启用基于x509证书的客户端身份validation: <Location /authenticate> SSLRequireSSL SSLVerifyClient require SSLVerifyDepth 10 </Location> 身份validation通过使用PIN解锁智能卡完成。 当用户需要更多的30秒来解锁他的智能卡时,响应是“没有收到数据”。 点击重新加载button,但是大多数用户在看到默认的浏览器错误页面时会遇到困惑。 我如何修改超时以允许更长的超时? 谢谢!
不知道这是否是正确的地方问这个问题,但我正在从mod_python到mod_wsgi的django项目迁移,我想确保我有我的Apacheconfiguration正确。 旧的configuration如下所示: DocumentRoot /srv/www/PROJECT/ <location "/"> Options +FollowSymLinks allow from all SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE PROJECT.settings PythonPath "['/srv/www/PROJECT'] + sys.path" PythonDebug On PythonInterpreter PROJECT </location> <location "/site_media/"> Options +FollowSymLinks SetHandler None </location> <location "/admin_media/"> Options +FollowSymLinks SetHandler None </location> <Location "/server-status"> SetHandler server-status Allow from .test.org localhost 127.0.0.1 </Location> 阅读文档,似乎所有我必须做的是: WSGIDaemonProcess PROJECT processes=2 […]
最近我的网站(https连接,运行在亚马逊EC2的Ubuntu的Apache2.2)有这个问题,我需要加载页面多次(3-4)之前,它会正常加载没有问题。 只要我经常保持加载页面(每隔几秒钟),它就会正常加载。 如果我几分钟没有加载页面,它会再次失速。 它与我的应用程序没有任何关系,因为我的笔记本电脑上的Apache安装完全相同的应用程序代码库没有这个问题。 我所知道的唯一改变的是我最近安装了mod_spdy,几周后我安装了mod_pagespeed, https://developers.google.com/speed/pagespeed/mod 。 不过,我已经把mod_pagespeed设置为mod_pagespeed off 。 不幸的是,这并没有解决问题。 下面这行是我error.log中最后10行的每一行: # tail -f /var/log/apache2/error.log … [32728:32729:ERROR:mod_spdy.cc(162)] request->chunked == 1 in request GET / HTTP/1.1 [Sat Jun 02 04:50:08 2012] [warn] [client 50.136.93.153] [stream 5] [32728:32729:WARNING:http_to_spdy_filter.cc(113)] HttpToSpdyFilter is not the last filter in the chain: chunk 有什么想法吗? 谢谢,蒂姆
嘿家伙,我希望你能帮我在这里。 我有一个NgingxparsingHTTP和https清漆caching(3.0.2)。 从清漆发送到apache2。 现在我有一段时间一直在跟踪一些奇怪的503错误。 但我似乎找不到银弹。 目前我通过varnish通过这种方式logging503错误: sudo varnishlog -c -m TxStatus:503 >> /home/rj/varnishlog503.log 然后引用apache访问日志来查看是否处理了503个请求。 今天,我从防火墙的健康检查失败: 20 SessionOpen c 127.0.0.1 34319 :8081 20 ReqStart c 127.0.0.1 34319 607335635 20 RxRequest c HEAD 20 RxURL c /health-check 20 RxProtocol c HTTP/1.0 20 RxHeader c X-Real-IP: 192.168.3.254 20 RxHeader c Host: 192.168.3.189 20 RxHeader c X-Forwarded-For: 192.168.3.254 20 […]