[Fwd: Problem of Virtual host]

[Fwd: Problem of Virtual host]

am 05.08.2002 06:11:57 von EdwardSPL

This is a multi-part message in MIME format.
--------------4660B8A3E0AB6D9B00BBFC3F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



--------------4660B8A3E0AB6D9B00BBFC3F
Content-Type: message/rfc822
Content-Disposition: inline

X-Mozilla-Status2: 00000000
Message-ID: <3D4D672A.94E6B675@ita.org.mo>
Date: Mon, 05 Aug 2002 01:40:58 +0800
From: EdwardSPL@ita.org.mo
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en,zh-TW
MIME-Version: 1.0
To: users@httpd.apache.org
Subject: Problem of Virtual host
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,

This my setting of virtual-host :


DocumentRoot "/home/domain1/html"
ServerName domain1.com
ServerAdmin root@@domain1.com

Options Indexes Includes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all

ErrorLog /var/log/httpd/domian1-error.log
CustomLog /var/log/httpd/domain1-access.log common



DocumentRoot "/home/domain1/html"
ServerName www.domain1.com
ServerAdmin root@domain1.com

Options Indexes Includes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all

ErrorLog /var/log/httpd/domian1-error.log
CustomLog /var/log/httpd/domain1-access.log common


# SSL :



DocumentRoot "/home/domain2/html"
ServerName domain2.com
ServerAdmin root@domain2.com

Options Indexes Includes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all

ErrorLog /var/log/httpd/domian2-error.log
CustomLog /var/log/httpd/domain2-access.log common
SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+e NULL
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key

SSLOptions +StdEnvVars


SSLOptions +StdEnvVars

SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /usr/local/apache/logs/upp-ssl.log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"





DocumentRoot "/home/domain2/html"
ServerName www.domain2.com
ServerAdmin root@domain2.com

Options Indexes Includes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all

ErrorLog /var/log/httpd/domian2-error.log
CustomLog /var/log/httpd/domain2-access.log common
SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+e NULL
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key

SSLOptions +StdEnvVars


SSLOptions +StdEnvVars

SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /usr/local/apache/logs/upp-ssl.log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"


error_log file :

[Mon Aug 5 01:28:01 2002] [warn] VirtualHost 192.168.200.1:80 overlaps
with VirtualHost 192.168.200.1:80, the first has precedence, perhaps you
need a NameVirtualHost directive
[Mon Aug 5 01:28:01 2002] [warn] VirtualHost 192.168.200.1:80 overlaps
with VirtualHost 192.168.200.1:80, the first has precedence, perhaps you
need a NameVirtualHost directive
[Mon Aug 5 01:28:01 2002] [warn] VirtualHost 192.168.200.1:80 overlaps
with VirtualHost 192.168.200.1:80, the first has precedence, perhaps you
need a NameVirtualHost directive
[Mon Aug 5 01:28:01 2002] [crit] (98)Address already in use: make_sock:
could not bind to port 80

So, can you help me ?

Thanks,

Edward.


--------------4660B8A3E0AB6D9B00BBFC3F--


____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org

Re: [Fwd: Problem of Virtual host]

am 05.08.2002 10:23:43 von Peter Viertel

a) put port numbers into your virtualhost headers eg:


#for http vhosts


#for ssl vhosts.

(and dont forget to add Listen directives for both ports 80 and 443... see example httpd.conf).

b) use a NameVirtualHost directive for the port 80 vhosts
NameVirtualHost 192.168.200.1:80
(or just have one vhost, in your example there is no difference between the two, so why not just have one?)

c) you cant really use namevirtualhost on SSL vhosts - well it will run, but you'll get issues with certificates - see the FAQ at http://www.modssl.org/

d) the errorlog says you cant start apache because there is another program already running which is listening on port 80 - or possibly its that you are not running apache as root (and therefore cannot bind to ports less than 1024).



EdwardSPL@ita.org.mo wrote:

>
> ------------------------------------------------------------ ------------
>
> Subject:
> Problem of Virtual host
> From:
> EdwardSPL@ita.org.mo
> Date:
> Mon, 05 Aug 2002 01:40:58 +0800
> To:
> users@httpd.apache.org
>
>
>Hello,
>
>This my setting of virtual-host :
>
>
>DocumentRoot "/home/domain1/html"
>ServerName domain1.com
>ServerAdmin root@@domain1.com
>
> Options Indexes Includes FollowSymLinks MultiViews ExecCGI
> AllowOverride All
> Order allow,deny
> Allow from all
>

>ErrorLog /var/log/httpd/domian1-error.log
>CustomLog /var/log/httpd/domain1-access.log common
>

>
>
>DocumentRoot "/home/domain1/html"
>ServerName www.domain1.com
>ServerAdmin root@domain1.com
>
> Options Indexes Includes FollowSymLinks MultiViews ExecCGI
> AllowOverride All
> Order allow,deny
> Allow from all
>

>ErrorLog /var/log/httpd/domian1-error.log
>CustomLog /var/log/httpd/domain1-access.log common
>

>
># SSL :
>
>
>
>DocumentRoot "/home/domain2/html"
>ServerName domain2.com
>ServerAdmin root@domain2.com
>
> Options Indexes Includes FollowSymLinks MultiViews ExecCGI
> AllowOverride All
> Order allow,deny
> Allow from all
>

>ErrorLog /var/log/httpd/domian2-error.log
>CustomLog /var/log/httpd/domain2-access.log common
>SSLEngine on
>SSLCipherSuite
>ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+ eNULL
>SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
>SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
>
> SSLOptions +StdEnvVars
>

>
> SSLOptions +StdEnvVars
>

>SetEnvIf User-Agent ".*MSIE.*" \
> nokeepalive ssl-unclean-shutdown \
> downgrade-1.0 force-response-1.0
>CustomLog /usr/local/apache/logs/upp-ssl.log \
> "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
>

>

>
>
>
>DocumentRoot "/home/domain2/html"
>ServerName www.domain2.com
>ServerAdmin root@domain2.com
>
> Options Indexes Includes FollowSymLinks MultiViews ExecCGI
> AllowOverride All
> Order allow,deny
> Allow from all
>

>ErrorLog /var/log/httpd/domian2-error.log
>CustomLog /var/log/httpd/domain2-access.log common
>SSLEngine on
>SSLCipherSuite
>ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+ eNULL
>SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
>SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
>
> SSLOptions +StdEnvVars
>

>
> SSLOptions +StdEnvVars
>

>SetEnvIf User-Agent ".*MSIE.*" \
> nokeepalive ssl-unclean-shutdown \
> downgrade-1.0 force-response-1.0
>CustomLog /usr/local/apache/logs/upp-ssl.log \
> "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
>

>
>error_log file :
>
>[Mon Aug 5 01:28:01 2002] [warn] VirtualHost 192.168.200.1:80 overlaps
>with VirtualHost 192.168.200.1:80, the first has precedence, perhaps you
>need a NameVirtualHost directive
>[Mon Aug 5 01:28:01 2002] [warn] VirtualHost 192.168.200.1:80 overlaps
>with VirtualHost 192.168.200.1:80, the first has precedence, perhaps you
>need a NameVirtualHost directive
>[Mon Aug 5 01:28:01 2002] [warn] VirtualHost 192.168.200.1:80 overlaps
>with VirtualHost 192.168.200.1:80, the first has precedence, perhaps you
>need a NameVirtualHost directive
>[Mon Aug 5 01:28:01 2002] [crit] (98)Address already in use: make_sock:
>could not bind to port 80
>
>So, can you help me ?
>
>Thanks,
>
>Edward.
>
>
>


____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org

Re: [Fwd: Problem of Virtual host]

am 05.08.2002 10:24:34 von Maurizio Marini

On Monday 05 August 2002 06:11 am, EdwardSPL@ita.org.mo wrote:


# SSL :





try


-- maumar

____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org