我需要用Tomcat托pipe两个站点。 这是我的Apache conf中的内容: <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /root/tomcat/webapps/PROJECT ServerName www.project.com </VirtualHost> 要访问该网站,只能通过www.project.com/project访问。 我无法访问索引,例如: www.project.com 而当我想要主办另一个网站的情况下呢? 我的想法: <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /root/tomcat/webapps/PROJECT1 ServerName www.project1.com </VirtualHost> 但是我没有成功。 我将如何解决这个问题?
我在我的debian机器上丢失了我的mod_ssl。 我怎样才能找回来 我不小心将它从mods_available中移除,而不是mods_enable,因为它是一个符号链接,我丢失了这个文件。 是否有可能得到这个没有破坏Apache的configuration? 有没有任何libapache2-mod我可以重新安装,万一请包括我如何删除+重新安装它。 谢谢。
我正在尝试configurationApache2和mod_passenger,以便我可以在服务器example.com/另一个站点以及example.com/另一个完全不同的rails实例。 我的<VirtualHost>上下文看起来像这样到目前为止: <VirtualHost *:80> # Name ServerName server.biz DocumentRoot /var/rails/current/public <Directory /var/rails/current/public> AllowOverride all Options -MultiViews </Directory> # Logfile ErrorLog /var/log/apache2/server.biz.error.log CustomLog /var/log/apache2/server.biz.access.log combined </VirtualHost> 如果任何人有任何想法,我怎么能做到这一点,甚至完全不同的方法来做到这一点,将不胜感激。
我有一个系统,我在我的服务器上托pipe一些SSL站点。 我还需要为每个域设置OAuth,尤其是Google和Yahoo。 他们每个都需要在服务器上安装validation文件,以validation所有权。 现在有这么多的文件,他们堵塞我的根目录。 所以我想要设置一个重写规则来发送一个请求到一个特定的URL到一个validation文件目录,如下所示: RewriteRule (^/googlew*.html$) /verifications$1 这会向http://server/verifications/google27c81d94580e55dd.html发送Googlevalidation文件请求,例如http://server/google27c81d94580e55dd.html ,而且不会重写url,它可以正常工作。 但是,当请求转到SSL URL时,它会失败。 这是我的configuration: <VirtualHost *:80> ServerName <domain> DocumentRoot /www/public RewriteEngine On RewriteRule (^/googlew*.html$) /verifications$1 [R] RewriteRule (^.*–.html$) /verifications$1 [R] </VirtualHost> <VirtualHost <ipaddress>:443> SSLEngine On ServerName <domain> DocumentRoot /www/public RackEnv production RewriteEngine On RewriteRule (^/googlew*.html$) /verifications$1 [R] RewriteRule (^.*–.html$) /verifications$1 SSLProtocol all SSLCipherSuite HIGH:MEDIUM SSLCertificateChainFile /usr/share/ssl/crt/intermediate.crt […]
问题:我已经在我的DocumentRoot中加载了Wordpress MU。 这个工作正常,但是我现在在DocumentRoot里面有两个项目,它们都有一个同名的目录:'plugins':/ var / www / html / cms / plugins / var / www / html / cms / sites /博客/可湿性粉剂内容/插件/。 我相信这是由于我目前的Apache安装而导致的冲突。 当我加载我的WP MU并login时,一切“看上去”都是正常的,但仔细观察,我发现由于Apache 404错误,没有加载任何插件。 示例: https://www.someplaceonline.ext/blogs/wp-content/plugins/active-directory-integration/css/adintegration.css?ver = 1.7.1 404没有find。 我不知道如何解决这个问题,所以我提供了我的Apache安装程序。 我已经试过了:将“ AliasMatch ^.*/plugins/(.*)$ /var/www/html/cms/plugins/$1 ”更改为AliasMatch ^\.\./plugins/(.*)$ /var/www/html/cms/plugins/$1 。 原因是:在我的cms目录内引用他们的“插件”通常以“..”为前缀,因此它们被格式化../plugins/someplugin/etc/etc.ext这继续加载正确的cms内的插件,并在http://www.regextester.com/validation我的正则expression式使我相信这应该可以解决这个问题,但是,项目,如https://www.someplaceonline.ext/blogs/wp-content/plugins/ active-directory-integration / css / adintegration.css?ver = 1.7.1仍然无法加载。 添加“ AliasMatch ^.*/wp-content/plugins/(.*)$ /var/www/html/cms/sites/blogs/wp-content/plugins/$1 ”。 我想我可以简单地附加一个新的AliasMatch来解决Wordpress的path映射,但是这也是行不通的。 […]
我有一个虚拟主机设置来主持一个Drupal网站。 这是取代我们中心的旧网站。 然而,该网站的一部分(完全是静态的)仍然需要依靠和以前一样的链接。 进一步详细说明Drupal站点的根目录是http://my.drupal.com/ ,静态网站的根目录是http://my.drupal.com/vislab 。 我将如何configurationApache来区分这两个网站?
我添加了扩展名到php.ini来获取模块加载,但现在我得到这个错误 警告:sasql_connect()[function.sasql-connect]:无法加载SQLAnywhere客户端库。 请确保可以在您的LD_LIBRARY_PATH环境variables中findlibdbcapi.so 有任何想法吗? Centos 5.7 64位PHP 5.1.6
我正在用ajax开发一个网站,允许许多queries插入许多row到数据库。 它在本地主机上运行正常,但是当我部署到服务器(免费的亚马逊服务器)时,通常会得到错误502 Bad Gateway 。 现在,我也想在我的Apache本地主机上获取Error 502来testing我的代码。 那么,如何configuration服务器? 感谢帮助。
我的生产服务器运行Ubuntu 11.10的48GB内存有一些严重的问题。 我的web服务器(Apache 2.1)的设置被configuration为使用大约18 GB的RAM。 我试图通过设置来计算这个值 max_clients 800 每个subprocess占用了将近23MB的内存 max_spare_servers 200 保持活跃 keepalivetimeout 3 Apache MPM被设置为prefork模块 另外我们正在使用 PHP 5.3.2 PDO连接到数据库 我通过将max_used_connections更改为800 ,对我的MySQL服务器(v5.1)做了类似的更改 key_buffer到4Gb(Myisam作为默认引擎,带有3个innodb表) key_buffer_size +(read_buffer_size + sort_buffer_size)* max_connections = 5.4Gb 现在max_used_connection正在迅速增加,几个小时后它停在595 ,再次爬到它的最大值800.我甚至尝试改变到默认的mysqlconfiguration,但仍然没有改变。 出于某种原因改为Apache的默认configuration解决了这个问题,现在max_used_connections稳定在57左右。 有没有人有这个行为的想法? Apachesconfiguration能否影响Mysql的性能?
我正在尝试在apache 2.2和python 3.2的ubuntu 11.10桌面版上安装Mod-wsgi 3.3 我下载了源码包并解压缩了。 我使用–with-python=/usr/bin/python3选项来configure 。 这是我安装的python3的唯一副本。 然后我发出命令make和sudo make install 。 我试图用sudo /etc/init.d/apache2 restart重新启动apache,并得到以下错误信息: apache2: Syntax error on line 203 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/wsgi.load: Cannot load /usr/lib/apache2/modules /mod_wsgi.so into server: /usr/lib/apache2/modules/mod_wsgi.so: undefined symbol: PyCObject_FromVoidPtr Action 'configtest' failed. The Apache error log may have more information. …fail! 错误日志只告诉我们这是一个段错误:` 我检查,确保它与ldd […]