我们使用apache httpd来为另一个端口上运行的另一个服务做反向代理。 ProxyPreserveHost On <Location /tull> Order allow,deny Allow from all ProxyPass https://myserver.com:8446/tbl/tbl ProxyPassReverse https://myserver.com:8446/tbl/tbl </Location> 运行在:8446 / tbl / tbl的服务会自行redirect。 因此,如果我使用代理来执行此操作: https://myserver.com/tull 当服务redirect到它自己时,它将转到: https://myserver.com/tbl/tbl 我想要它做的是redirect到: https://myserver.com/tull 因此,问题变成 – 我可以以某种方式configurationApache httpd做myserver.com:8446/tbl/tbl的反向代理,但同时使8446服务认为原始请求是/ tull? 干杯
我有我的PHP运行在Centos 6.5(最终)。 我有一个问题,那就是我的一个潜在客户在远程login并redirect会话时空了。他甚至在其他机器或浏览器上尝试过,在那个networking中是一样的。 以下是我所做的检查清单。 页面的每一个顶部都有会话开始 在redirect语句之后,我把exit() 客户确保启用cookies。 我还能做些什么来克服这个问题? 可能是服务器端或客户端问题?
我试图在OS X Mountain Lion上运行Apache,但只能让虚拟主机'localhost'工作。 在/ etc / hosts中我有: 127.0.0.1 localhost magento.dev solas-lite.dev 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 在httpd-vhosts.conf中我有: NameVirtualHost *:80 <VirtualHost *:80> ServerName solas-lite.dev DocumentRoot "/Users/johnpeden/Sites/solas-lite" </VirtualHost> <VirtualHost *:80> ServerName magento.dev DocumentRoot "/Users/johnpeden/Sites/magento" </VirtualHost> <VirtualHost *:80> ServerName localhost DocumentRoot "/Users/johnpeden/Sites" </VirtualHost> 本地主机显示正是我期望的,如果我ping本地主机,solas-lite.dev或magento.dev我得到了127.0.0.1响应。 但是,如果我尝试访问浏览器中的http://solas-lite.dev或http://magento.dev ,我没有得到任何回应。 我甚至可以映射本地主机到另一个文件夹,它的工作原理 服务器已重新启动,计算机已重新启动。 httpd -S的输出是: VirtualHost configuration: wildcard NameVirtualHosts and _default_ […]
我正在尝试安装Opencats.For,这是必需的,使肥皂。我已经启用肥皂。 soap Soap Client => enabled Soap Server => enabled soap.wsdl_cache => 1 => 1 soap.wsdl_cache_dir => /tmp => /tmp soap.wsdl_cache_enabled => 1 => 1 soap.wsdl_cache_limit => 5 => 5 soap.wsdl_cache_ttl => 86400 => 86400 但是,虽然安装仍然显示 PHP SOAP extension (soap) is not loaded. Check your settings in php.ini. CATS Open Source will function without SOAP, […]
我只是在我的Windows Azure托pipeUbuntu 12.04 Apache服务器上configuration站点来使用SSL,这些站点正在工作并正确redirect。 这是我的虚拟主机configuration: <VirtualHost *:80> ServerName site1.company.com Redirect permanent / https://site1.company.com/ </VirtualHost> <VirtualHost *:443> DocumentRoot /var/www/site1 ServerName site1.company.com Options -Indexes DirectoryIndex login.php SSLEngine on SSLCertificateFile /etc/apache2/certs/company.com.crt SSLCertificateKeyFile /etc/apache2/certs/server1.key SSLCertificateChainFile /etc/apache2/certs/gd_bundle.crt </VirtualHost> 所有的虚拟主机configuration几乎相同。 不过,我在Apache的错误日志中看到了很多条目,这让我担心生产过程中的性能问题。 [debug] ssl_engine_kernel.c(1866): OpenSSL: Handshake: start [debug] ssl_engine_kernel.c(1874): OpenSSL: Loop: before/accept initialization [debug] ssl_engine_io.c(1908): OpenSSL: I/O error, 11 bytes expected to […]
我有一个大的Wordpress网站(600-900一贯的用户在任何时候)和大约6个月前,我们设置清漆。 我们的configuration使用5GBcaching并存储在内存中。 当场地一下子打到1500-2000人时,Varnish开始扔503错误。 我们曾经将caching存储在磁盘上,但将其移到内存看起来减less了503错误。 我们网站上有3个iFrame,我们在每个页面上使用内嵌式广告刷新。 我注意到在varnishlog中,每次用户点击一个页面时,它会计为4次(实际页面+3个包含广告代码的iframe)。 这意味着网站上的1500个用户实际上相当于6000个清漆命中(如果他们没有错过)。 这是否重要,因为除了广告代码,iFrame页面上基本上没有任何内容? 或者可以大量的点击清漆导致性能问题? 如果这可能导致Varnish从太多的请求中崩溃,我可能会考虑告诉它停止cachingiFrame的URL,但是我担心所有的命中我将采取的Apache … 谢谢!
问题是:我有一个index.html文件位于/www/site/ ,我希望能够从自定义端口下的该文件夹中提供所有适当的内容,例如:8085 。 它也只能通过ProxyPass访问。 configuration如下所示: /available-sites文件夹中的site.dev : Listen 8085 <VirtualHost *:8085> DocumentRoot "/www/site" ServerName site.dev ServerAlias site.dev <Directory "/www/site"> AllowOverride All Allow from all </Directory> </VirtualHost> httpd.conf如下所示: ProxyPass /site http://localhost:8085/site ProxyPassReverse /site http://localhost:8085/site 设置这种configuration后,服务器没有响应, error.log文件被填充: proxy: HTTP: disabled connection for (site.dev) ap_proxy_connect_backend disabling worker for (site.dev) caught SIGTERM, shutting down server reached MaxClients settings …. […]
我的目标是将旧的SVN存储库从Windows VisualSVN服务器转移到Linux的Apache SVN服务器。 第一步是使用svnadmin dump命令转储所有存储库。 之后,我把这些转储加载到我的Linux服务器上。 导入存储库时没有错误。 但是,对于某些文件,在提交更改时会出现500内部服务器错误。 为了检查什么是错误的,我打开了一些生成错误的文件到我的网页浏览器。 我发现这些文件的最后几行已损坏。 没有数据丢失,但文件末尾有奇怪的字符。 它们在我的networking浏览器中显示为“???”。 我试图做多个出口,但所有的出口将导致同样的问题。 是否有可能纠正存储库或转储? 你有什么想法我可以防止这种情况发生?
我在Linux上有一个托pipe在Apache上的网站,我们需要将它迁移到Windows上的Apache。 不幸的是,我们有parsingApache提供的目录列表的实用程序来浏览文件系统。 Windows目录列表是不同的,并打破程序。 有没有办法像在Linux上生成一样,为Windows上的目录列表生成相同的HTML?
我怎样才能转换这个Apache重写规则,使他们在Lighttpd上工作? 这实际上是一个.htaccess文件,我需要把它们放在一个lighttpd.conf文件中。 Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule www.(.*) web.php?url=$1 RewriteRule sitemap/(.*) mapdi.php?page=$1 RewriteRule tags_(.*)\.html$ tags.php?keywords=$1 RewriteRule ^([^-]*)-page-([^-]*)\.html$ tags.php?keywords=$1&page=$2 [L] RewriteRule ^sitemap_([^-]*)\.html$ sitemap_web.php?page=$1 [L] RewriteRule ^sitemap\.html$ sitemap.php$1 [L] RewriteRule ^privacy\.html$ privacy.php$1 [L] 我转换了一部分代码,但不知道如何转换: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ …. …. 这是我可以转换: url.rewrite-once = ( RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} […]