httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr Hracek <phrac...@gmail.com>
Subject [users@httpd] Configuration of virtual hosts
Date Tue, 02 Oct 2012 09:38:11 GMT
Dear users,

sorry for botherring you with that issue but I have some questions
regarding apache2.2.22:
1) from the Java applet I see sometimes (Client 2008)-> server (SLES
10) error message from Java console like:
exception: Invalid argument: setsockopt.
It seems like apache2 closed the connection before openning. Could it
be problem when in apache2 log I see message server is busy?
This error is sporadicall.

2) Configuration issue
First one configuration file is stored in conf.d/myconfig.conf which
is used for configuration 80 port
Second one configuration file is stored in
vhosts.d/vhost-myconfig.conf which is used for configuration as for
443 as for virtual host.

My question is:
are directives mentioned in conf.d/myconfig.conf also used (inherited)
in virtual hosts sections mention in vhosts.d/vhost-muconfig.conf
or shall I mentioned twice/three times?

in conf.d/myconfig.conf are mentioned directives like:
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 10000
LimitRequestBody 2147483648
Timeout 180
KeepAlive On
KeepAliveTimeout 5
MaxKeepAliveRequests 100
StartServers 8
MinSpareServers 9
MaxSpareServers 10

in vhosts.d/vhost-myconfig.conf are mentioned virtual hosts like:
<VirtualHost *:443>
    SSLEngine on
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
    BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
    SSLProxyEngine on
    ServerName main_server
#ProxyPreserveHost on
    ProxyRequests On
    TraceEnable off
-----
    <Location "/term/">
        AuthType MyType
        require valid-user
        ProxyPass   http://127.0.0.1:8000/
        ProxyPassReverse http://localhost:8000/
    </Location>
   // This directive proxy to VirtualHost 127.0.0.1:443
   ProxyPass / https://127.0.0.1/
   ProxyPassReverse / https://127.0.0.1/

-----
</VirtualHost>
<VirtualHost 127.0.0.1:443>

ServerName myserver
SSLEngine on
SSLProxyEngine on
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0
force-response-1.0

ProxyPreserveHost on
ProxyRequests Off
TraceEnable Off
</VirtualHost>

-- 
Best Regards / S pozdravem
Petr Hracek

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message