你好,我有以下的Apacheconfiguration,这应该是驱动433端口上的所有stream量到一些平衡器,使用一个小的服务器称为薄。
<VirtualHost *:443> ServerAdmin webmaster@localhost SSLEngine On SSLCertificateFile /etc/ssl/private/localhost.pem DocumentRoot /home/me/projects/contest/public/ <Proxy balancer://thinservers> BalancerMember http://127.0.0.1:3000 </Proxy> <Proxy *> Order deny,allow Allow from all </Proxy> RewriteEngine On # Redirect all non-static requests to thin RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://thinservers%{REQUEST_URI} [P,QSA,L] ProxyPass / balancer://thinservers/ ProxyPassReverse / balancer://thinservers/ ProxyPreserveHost on ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
无论如何,我在瘦服务器中获得的URL从https更改为http,但是我希望瘦服务器将其看作https。 不知道什么是错的,该怎么办。 任何build议?
这是一个猜测,但我认为你可能需要使用这个: SSLProxyEngine ON
在块之前。
从这里: http : //httpd.apache.org/docs/2.0/mod/mod_ssl.html#sslproxyengine