You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Petr Hracek <ph...@gmail.com> on 2011/08/08 14:57:24 UTC

[users@httpd] Different Virtual Host configurations

Dear users,

I have following two virtual host configurations. First is working
correctly and second one not.
Could you please explain me where could be a problem?
In directory /srv/www/htdocs/ssldocs/USMA/cert/ is CGI script index.cgi

When I am calling https://<IP_ADDRESS/USMA/cert/index.cgi
In first configuration I receive correct message that certificate is not valid.
In second configuration I receive message HTTP_502 (Bad Gateway) .
What is wrong?

FIRST configuration is working
<VirtualHost _default_:443>

SSLEngine on
SSLProxyEngine on
#ProxyPreserveHost on
ProxyRequests Off
TraceEnable Off
DocumentRoot "/src/www/htdocs/ssldocs"

RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule ^/USMA(.*)              - [L]

<Directory "/srv/www/htdocs/ssldocs/USMA/cert/">
    SSLRequireSSL
    SSLVerifyClient      require
    SSLVerifyDepth       5
    SSLOptions           +FakeBasicAuth +StdEnvVars +ExportCertData
    SSLRequire           %{HTTP_USER_AGENT} ne "__empty"

    Order deny,allow
    Options +ExecCGI -Includes
    Allow from all
</Directory>

</VirtualHost>

SECOND configuration is not working (why?):
<VirtualHost *:443>

        SSLEngine on
        SSLProxyEngine on
        ServerName main_assistant
        ProxyRequests off
        TraceEnable off
        # SSLCertificateFile is buried here

       <Location "/" >
                ProxyPass https://127.0.0.1/
                ProxyPassReverse https://127.0.0.1/
        </Location>
</VirtualHost>
<VirtualHost 127.0.0.1:443>

SSLEngine on
SSLProxyEngine on
#ProxyPreserveHost on
ProxyRequests Off
TraceEnable Off
DocumentRoot "/src/www/htdocs/ssldocs"

RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule ^/USMA(.*)              - [L]

<Directory "/srv/www/htdocs/ssldocs/USMA/cert/">
    SSLRequireSSL
    SSLVerifyClient      require
    SSLVerifyDepth       5
    SSLOptions           +FakeBasicAuth +StdEnvVars +ExportCertData
    SSLRequire           %{HTTP_USER_AGENT} ne "__empty"

    Order deny,allow
    Options +ExecCGI -Includes
    Allow from all
</Directory>

</VirtualHost>

-- 
Best Regards / S pozdravem
Petr Hracek

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Different Virtual Host configurations

Posted by James Moe <ji...@sohnen-moe.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/08/2011 05:57 AM, Petr Hracek wrote:
> Dear users,
> 
> I have following two virtual host configurations. First is working 
> correctly and second one not.
> 
  What does "not working" mean?
  What is in the logs?

- -- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5AFMUACgkQzTcr8Prq0ZMjUACfWzYGyKeZYT1NDEn9MKGqHtGa
rzsAni/5lJFATb9SSBfq6OQ6dcqRoaz8
=xAP8
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org