如何通过不包含在虚拟主机文档根目录中的index.html访问以前的文件夹。 例如: <VirtualHost *:443> DocumentRoot /var/www/banking/personal-banking ServerName www.zbux.com ErrorLog /var/log/apache2/www.zbux.com-error.log CustomLog /var/log/apache2/www.zbux.com-ssl_access.log combined SSLEngine on SSLCertificateFile /etc/ssl/certs/zbux_com.crt SSLCertificateChainFile /etc/ssl/certs/zbux_com.ca-bundle SSLCertificateKeyFile /etc/ssl/private/zbux.com.key </VirtualHost> 个人银行文件夹中包含index.html,该文件需要访问银行文件夹中的文件夹bak。
我有一个二次开发WordPress的网站。 (Centos 6.6 x86,LAMP)由于网站的规模越来越大。 (300GB +)。 现在我把它分成3个服务器。 域名:www.example.com server1 46.192.22.01 /var/www/public_html /music /video server2 46.192.22.02 /var/www/public_html /article /photo server3 172.192.22.03 /var/www/public_html /products /showroom 3 ips已经在域DNS中设置。 我想让他们成为一个集群。 自定义访问我的网站由不同的URL,Apache将select正确的服务器,其中陆地页面文件。 www.example.com/music/xxx mapping to server with 172.192.22.01 www.example.com/article/xxx mapping to server with 172.192.22.02 www.example.com/products/xxx mapping to server with 172.192.22.03 现在我用了apache proxypassreverse。 /etc/httpd/conf/httpd.conf在server1中 ServerName www.example.com:80 <VirtualHost *:80> ServerName www.example.com ServerAlias […]
情况: 我在一些重载的mod-php apache服务器前使用了Varnish。 当一个冷(空xcache,冷模板caching)apache启动时,服务器可能会因请求太多而过载。 问题是: 有没有办法像nginx缓慢启动( http://nginx.org/en/docs/http/ngx_http_upstream_module.html#upstream,'slow_start = time')清漆?
我被要求在我们的Web服务器上禁用SSL v3和TLS v1。 但是Apache报告: [error] No SSL protocols available [hint: SSLProtocol] 当我在下面的SSLProtocol节中包含-TLSv1时。 如果我删除-TLSv1它工作正常,但TLS版本1当然然后启用。 AFAIK'All'表示OpenSSL v 1.0.1中的+ SSLv2 + SSLv3 + TLSv1 + TLSv1.1 + TLSv1.2,这是我正在使用的版本。 那为什么它拒绝-TLSv1? SSLProtocol All –TLSv1 -SSLv2 -SSLv3 SSLHonorCipherOrder on SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
我对nginx很新,但是以前有过apacheredirect的经验。 我将一个子域名转换为一个子文件夹,并需要一些帮助,让我的重写规则正确的交换机。 子域托pipe在apache服务器上,新的子目录托pipe在我的新nginx服务器上。 下面是包含我所需的redirect的工作htaccess文件: Options +FollowSymlinks RewriteEngine On RewriteCond %{HTTP_HOST} ^france-property\.frenchentree\.com$ [NC] RewriteCond %{QUERY_STRING} ^$ RewriteRule ^for-sale/(.*)$ http://www.frenchentree.com/property-for-sale/search/$1? [R=301,NE,NC,L] RewriteCond %{HTTP_HOST} ^france-property\.frenchentree\.com$ [NC] RewriteCond %{QUERY_STRING} ^$ RewriteRule ^for-sale$ http://www.frenchentree.com/property-for-sale/search? [R=301,NE,NC,L] RewriteCond %{HTTP_HOST} ^france-property\.frenchentree\.com$ [NC] RewriteCond %{QUERY_STRING} ^$ RewriteRule ^for-sale-details(.*) http://www.frenchentree.com/property-for-sale/details$1? [R=301,NE,NC,L] RewriteCond %{HTTP_HOST} ^france-property\.frenchentree\.com$ [NC] RewriteCond %{QUERY_STRING} ^$ RewriteRule ^buyer-registration(.*)$ http://www.frenchentree.com/property-for-sale/buyer-registration? [R=301,NE,NC,L] RewriteCond %{HTTP_HOST} ^france-property\.frenchentree\.com$ […]
我有一个在端口8000上运行的icecast服务器。我可以从互联网上以LINK1(见下文)的forms访问服务器。 另外,我创build了一个HTML页面,其中包含一些embedded了HTML5audio播放器的信息。 如果作为http主机域名点com访问工作正常。 <html> <head> <title>Radio</title> </head> <body> <p>Some text</p> <audio controls> <source src="LINK1" type="audio/ogg"> </audio> </body> </html> 问题是,如果端口8000在侦听器计算机上被阻止,他们听不到stream。 所以,我试图使用mod_proxy和mod_rewrite但无济于事。 如果我使用下面的configuration,我可以绕过端口8000,并且在端口80上stream式传输,但是http host dot dot com只显示audio播放器,而不是整个HTML页面。 我尝试了不同的组合和谷歌search,我只是无法弄清楚。 我的问题是如果这是一个可行的解决scheme。 在Apache 80和icecast 8000代理通过相同的端口? 我需要两个IP吗? 那么如果我使用两个IP,什么是正确的configuration。 这是我的Apache虚拟主机configuration。 ProxyRequests Off ProxyPass / LINK1 ProxyPassReverse / LINK1 #RewriteEngine On #RewriteRule ^/mount\.ogg$ LINK2 [P] 请注意,mount.ogg是一个不存在的文件。 这只是icecast的一个挂载点。 ==>在这里发布链接(至less需要10个声望)LINK1: http ://host.domain.com:8000/mount.ogg LINK2: http ://host.domain.com/mount.ogg […]
我有一个运行AMI(基于RedHat的)Linux的Amazon ec2 m3中型实例。 我试图通过在httpd.conf的末尾添加这个实例来在这个实例上托pipe多个域: <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/domain1 ServerName domain1.com ErrorLog logs/domain1.com_error_log CustomLog logs/domain1.com_access_log common </VirtualHost> <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/ ServerName domain2.com ErrorLog logs/domain2.com-error_log CustomLog logs/domain2.com-access_log common </VirtualHost> 现在这是我的问题: 当我打开domain1.com时,它打开的很好,但是当我打开浏览器domain1.com服务器的IP时打开。 domain1.com的内容存储在192.168.1.1/domain1/ OR / var / www / html / domain1中 目录/ var / www / html被假定为未来的主机domain2.com。 所以当我打开IP时,应该显示/ var / www / […]
默认情况下,awstats将.php Dynamic PHP Script file到一个Dynamic PHP Script file 。 但是,该网站的模式在于route=??? 后一个index.php? ,例如: GET /index.php?route=account/login/valid HTTP/1.1 GET /index.php?route=account/logout HTTP/1.1 GET /index.php?route=product/sunglasses/success HTTP/1.1 awstats可configuration为打破index.php后面的routestream量? 如果否,任何其他工具可以完成这项工作?
我在Debian上安装了libapache2-mod-rpaf软件包 ,因为mod_remoteip似乎不可用。 我发现一个github回购,但configuration选项是不同的。 例如,在存储库中,使用了RPAF_Enable ,但该包的默认configuration使用RPAFenable (请参阅包的默认configuration ) 我在哪里可以find我正在使用的模块的文档?
我看着我的各种日志文件,我相信操作系统会定期将日志附加到日志中。 我在httpd.conf文件中创build了一些自定义日志,但是这些日志没有类似的行为。 我怎样才能使我的定制日志周期性地重新命名与其他日志类似的date戳? httpd.conf文件 LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" common_forwarded ErrorLog /var/log/httpd/books/error.log CustomLog /var/log/httpd/books/forwarded.log common_forwarded CustomLog /var/log/httpd/books/access.log combined env=!dontlog CustomLog /var/log/httpd/books/log combined <IfModule mod_rewrite.c> RewriteLog /var/log/httpd/books/rewrite RewriteLogLevel 9 </IfModule> 日志 [root@devserver httpd]# pwd /var/log/httpd [root@devserver httpd]# ls -l total 68100 -rw-r–r–. 1 root root 8263 Dec 16 03:55 access_log -rw-r–r–. 1 root […]