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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.