<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to solve http &#x2F; https &#x2F; www]]></title><description><![CDATA[<p dir="auto">I have an LXC container in a virtualized Proxmox VE environment. This LXC runs an apache web server with 4 web pages</p>
<p dir="auto">Config file for www.my-domain.dyndns.com</p>
<pre><code>/etc/apache2/sites-available/www.my-domain.dyndns.com.conf
</code></pre>
<pre><code>&lt;VirtualHost *:80&gt;
        DocumentRoot /var/www/www.my-domain.dyndns.com
        ServerName my-domain.dyndns.com
        ServerAlias www.my-domain.dyndns.com
        ServerAdmin webmaster@my-domain.dyndns.com
        RewriteEngine on
        RewriteCond %{HTTP_HOST} ^my-domain\.dyndns\.com$ [NC]
        RewriteRule ^(.*)$ http://www.my-domain.dyndns.com$1 [R=301,NE,L]
        RewriteCond %{HTTPS} off
        RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
&lt;/VirtualHost&gt;
 
&lt;VirtualHost *:443&gt;
        DocumentRoot /var/www/www.my-domain.dyndns.com
        ServerName my-domain.dyndns.com
        ServerAlias www.my-domain.dyndns.com
        ServerAdmin webmaster@my-domain.dyndns.com
  &lt;IfModule mod_ssl.c&gt;
        SSLEngine on
        SSLCertificateKeyFile /etc/letsencrypt/live/my-domain.dyndns.com/privkey.pem
        SSLCertificateFile /etc/letsencrypt/live/my-domain.dyndns.com/cert.pem
        SSLCertificateChainFile /etc/letsencrypt/live/my-domain.dyndns.com/chain.pem
#       SSLCertificateChainFile /etc/letsencrypt/live/my-domain.dyndns.com/fullchain.pem
  &lt;/IfModule&gt;
        RewriteEngine on
        RewriteCond %{HTTP_HOST} ^my-domain\.ddns\.com$ [NC]
        RewriteRule ^(.*)$ https://www.my-domain.dyndns.com$1 [R=301,NE,L]
&lt;/VirtualHost&gt;
</code></pre>
<p dir="auto">Until now, I used a routerboard (Mikrotik) and everything worked great. The configuration file is set as follows<br />
When the client writes to the url</p>
<pre><code>my-domain.dyndns.com
www.my-domain.dyndns.com
http://www.my-domain.dyndns.com
https://www.my-domain.dyndns.com
</code></pre>
<p dir="auto">so it always redirects to</p>
<pre><code>https://www.my-domain.dyndns.com
</code></pre>
<p dir="auto">I've been using pfsense for about 2 days now and it doesn't work. When the client writes to the url</p>
<pre><code>my-domain.dyndns.com
www.my-domain.dyndns.com
http://www.my-domain.dyndns.com
</code></pre>
<p dir="auto">the webpage will not be displayed. When the client writes to the url</p>
<pre><code>https://my-domain.dyndns.com
https://www.my-domain.dyndns.com
</code></pre>
<p dir="auto">then it works great.<br />
Now I don't know where the mistake is. Do I need to change anything in the apache configuration or in pfsense?</p>
<p dir="auto"><a href="https://imgur.com/ZUbyTio" target="_blank" rel="noopener noreferrer nofollow ugc">Firewall/NAT</a></p>
]]></description><link>https://forum.netgate.com/topic/157273/how-to-solve-http-https-www</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 21:34:18 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/157273.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Sep 2020 18:42:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to solve http &#x2F; https &#x2F; www on Wed, 30 Sep 2020 20:09:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
I completely forgot about it.<br />
thanks</p>
]]></description><link>https://forum.netgate.com/post/937757</link><guid isPermaLink="true">https://forum.netgate.com/post/937757</guid><dc:creator><![CDATA[gusto]]></dc:creator><pubDate>Wed, 30 Sep 2020 20:09:08 GMT</pubDate></item><item><title><![CDATA[Reply to How to solve http &#x2F; https &#x2F; www on Wed, 30 Sep 2020 18:55:14 GMT]]></title><description><![CDATA[<p dir="auto">So forward HTTP as well to the server.</p>
]]></description><link>https://forum.netgate.com/post/937736</link><guid isPermaLink="true">https://forum.netgate.com/post/937736</guid><dc:creator><![CDATA[viragomann]]></dc:creator><pubDate>Wed, 30 Sep 2020 18:55:14 GMT</pubDate></item></channel></rss>