Jump to content

Dyndns - https - apache


huckerby

Recommended Posts

Hia,

 

ive got a little problem an i dont know really how i can solve it=)..

 

(srj my english is not perfect coze i'm from switzerland(europe=) )...

 

Scenario:

 

I have an Apache Webserver and an Dyndns.org and an Internal(for the intranet) Domain .

 

I made two virtual hosts: One for the Dyndns.org Domain and one for the internat Domain.

 

I created two certificates for using those domains over https.

 

The internal domain works with https. The DynDns Domain doesnt. (it just works over http(80). )

 

I have an Cisco 1812W Router but i can acess it over https, so i dont think its an firewall Problem or somethin like that.

 

Did i made an Mistake in my httpd.conf ?

I already tested it with an new Certificate. For Virtual Host1: (Server=dyndns.org). And for Virtual Host2: (Server=<privat IP>)

Here my Config:

(192.168.1.4= examples)

Listen 443

...

 

NameVirtualHost 192.168.1.4:443

 

        <VirtualHost 192.168.1.4:443>

        ServerName 192.168.1.4

        ServerAdmin mail@localhost

        DocumentRoot /var/www/html

        SSLEngine On

        SSLCertificateFile /usr/local/httpd/ca/cert.cer

        SSLCertificateKeyFile /usr/local/httpd/ca/cert.key

        <Directory "/var/www/html">

        AllowOverride None

      Order allow,deny

        Allow from all

        </Directory>

</VirtualHost>

 

<VirtualHost 192.168.1.4:443>

        ServerName example.dyndns.org

        ServerAdmin mail@localhost

        DocumentRoot /var/www/html

        SSLEngine On

        SSLCertificateFile /usr/local/httpd/ca/cert.cer

        SSLCertificateKeyFile /usr/local/httpd/ca/cert.key

        <Directory "/var/www/html">

        AllowOverride None

        Order allow,deny

        Allow from all

        </Directory>

</VirtualHost>

 

Link to comment
https://forums.phpfreaks.com/topic/130241-dyndns-https-apache/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.