Your apache server may have the name "www.servername.com" but your DNS
server does not know about it and tries to reach it in the internet
(unluckily for you, this is not a real domain/site , or else you'd figured
out by now when you'd got that other site in your browser...) !
So ... you should probably add www.servername.com in your /etc/hosts file
in order to access it without any other (more complicated) intervention.
Or, maybe, just access it by it's local IP address instead of the "name" ...
On Fri, Nov 15, 2013 at 3:36 PM, Cornel Diaconu <lenrocd(a)gmail.com> wrote:
> Your apache server may have the name "www.servername.com" but your DNS
> server does not know about it and tries to reach it in the internet
> (unluckily for you, this is not a real domain/site , or else you'd figured
> out by now when you'd got that other site in your browser...) !
> So ... you should probably add www.servername.com in your /etc/hosts file in
> order to access it without any other (more complicated) intervention.
> Or, maybe, just access it by it's local IP address instead of the "name" ...
>
>
>
> On Fri, Nov 15, 2013 at 1:47 AM, James D. Parra <jamesp(a)musicreports.com>
> wrote:
>>
>> Hello,
>>
>> I set up Apache2 and two virtual hosts, one for port 80 ant the other for
>> 443. Certs were installed and conf files look good, including listen.conf,
>> however, while the site loads in a browser on port 80, once switched to
>> https the browser errors out with "...can't establish a connection to the
>> server at www.servername.com".
>>
>> On the server side I have no errors in the apache error logs and nothing
>> in /var/log/messages.
>>
>> The vhost entry is thus;
>>
>> <snip>
>> <VirtualHost *:443>
>> DocumentRoot /srv/www/htdocs/www
>> ServerName www.servername.com:443
>> ServerAdmin me@localhost
>> ErrorLog /var/log/apache2/www_error_log
>> LogFormat "%v %h %l %u %t \"%r\" %>s %b" common
>> CustomLog /var/log/apache2/www_access_log common
>> <Directory "/srv/www/htdocs/www">
>> allow from all
>> Options -Indexes
>> </Directory>
>> SSLEngine on
>> SSLProtocol all -SSLv2 -SSLv3
>> SSLCipherSuite ALL:!aNULL:!eNULL:!SSLv2:!LOW:!EXP:!MD5:@STRENGTH
>> SSLCertificateFile /etc/apache2/.ssl/servername.com.crt
>> SSLCertificateKeyFile /etc/apache2/.ssl/servername.com.key
>> SSLCACertificateFile /etc/apache2/.ssl/gd_bundle.crt
>> </VirtualHost>
>> <snip>
>>
>> and listen.conf
>>
>> <snip>
>> Listen 80
>>
>>
>> <IfDefine SSL>
>> <IfDefine !NOSSL>
>> <IfModule mod_ssl.c>
>>
>> Listen 443
>> # Listen 10.10.0.50:443
>>
>> </IfModule>
>> </IfDefine>
>> </IfDefine>
>> <snip>
>>
>> There firewall is off on the server as it is only accessible on the local
>> network.
>>
>> Any ideas on what I can do to get this working?
>>
>> Many thanks in advance.
>>
>> James
>> --
>> To unsubscribe, e-mail: opensuse-amd64+unsubscribe(a)opensuse.org
>> To contact the owner, e-mail: opensuse-amd64+owner(a)opensuse.org
>>
>
>
>
> --
> With or without religion, good people can behave well and bad people can do
> evil; but for good people to do evil, that takes religion.
> [Steven Weinberg]
--
With or without religion, good people can behave well and bad people
can do evil; but for good people to do evil, that takes religion.
[Steven Weinberg]
--
To unsubscribe, e-mail: opensuse-amd64+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-amd64+owner(a)opensuse.org
Hello,
I set up Apache2 and two virtual hosts, one for port 80 ant the other for 443. Certs were installed and conf files look good, including listen.conf, however, while the site loads in a browser on port 80, once switched to https the browser errors out with "...can't establish a connection to the server at www.servername.com".
On the server side I have no errors in the apache error logs and nothing in /var/log/messages.
The vhost entry is thus;
<snip>
<VirtualHost *:443>
DocumentRoot /srv/www/htdocs/www
ServerName www.servername.com:443
ServerAdmin me@localhost
ErrorLog /var/log/apache2/www_error_log
LogFormat "%v %h %l %u %t \"%r\" %>s %b" common
CustomLog /var/log/apache2/www_access_log common
<Directory "/srv/www/htdocs/www">
allow from all
Options -Indexes
</Directory>
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ALL:!aNULL:!eNULL:!SSLv2:!LOW:!EXP:!MD5:@STRENGTH
SSLCertificateFile /etc/apache2/.ssl/servername.com.crt
SSLCertificateKeyFile /etc/apache2/.ssl/servername.com.key
SSLCACertificateFile /etc/apache2/.ssl/gd_bundle.crt
</VirtualHost>
<snip>
and listen.conf
<snip>
Listen 80
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>
Listen 443
# Listen 10.10.0.50:443
</IfModule>
</IfDefine>
</IfDefine>
<snip>
There firewall is off on the server as it is only accessible on the local network.
Any ideas on what I can do to get this working?
Many thanks in advance.
James
--
To unsubscribe, e-mail: opensuse-amd64+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-amd64+owner(a)opensuse.org