windows下的https配置,大神帮确认下 看这个配置文件有问题没


#1

这个是httpd-ssl.conf里最后的内容,大神帮看下这么搞有问题没
<VirtualHost *:443>
DocumentRoot “C:\phpStudy\PHPTutorial\Apache\htdocs”
ServerName 192.168.95.110
Alias /media “C:/SeafileServer/seafile-server-6.0.7/seahub/media”
RewriteEngine On
SSLEngine on

SSLCertificateFile “C:/conf/crt_key/server.crt”
SSLCertificateKeyFile “C:/conf/crt_key/server.key”
<Location “/media”>
Require all granted

seafile fileserver

proxyPass /seafhttp http://127.0.0.1:8082
proxyPassReverse /seafhttp http://127.0.0.1:8082
RewriteRule ^/seafhttp - [QSA,L]

seahub

SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
SetEnvIf Authorization “(.)” HTTP_AUTHORIZATION=$1
ProxyPass / fcgi://127.0.0.1:8000/


#2

找到问题了
SetEnvIf Authorization “(.)” HTTP_AUTHORIZATION=$1 这句中间的 点 后面加个星号就ok了;
变成 SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1