Cannot access Kestrel from outside on Ubuntu with Apache2 Announcing the arrival of Valued...

Lagrange four-squares theorem --- deterministic complexity

Putting class ranking in CV, but against dept guidelines

How does Belgium enforce obligatory attendance in elections?

How to identify unknown coordinate type and convert to lat/lon?

Is there hard evidence that the grant peer review system performs significantly better than random?

How to run automated tests after each commit?

Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?

How do living politicians protect their readily obtainable signatures from misuse?

An adverb for when you're not exaggerating

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

Does the Mueller report show a conspiracy between Russia and the Trump Campaign?

What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?

How does the math work when buying airline miles?

How many morphisms from 1 to 1+1 can there be?

How would a mousetrap for use in space work?

Dyck paths with extra diagonals from valleys (Laser construction)

Do wooden building fires get hotter than 600°C?

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?

What would you call this weird metallic apparatus that allows you to lift people?

Can a sorcerer use careful spell on himself?

What does 丫 mean? 丫是什么意思?

What does this say in Elvish?

Why weren't discrete x86 CPUs ever used in game hardware?

Flash light on something



Cannot access Kestrel from outside on Ubuntu with Apache2



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Apache2 Ubuntu 500 ErrorDefault VirtualHost with Apache2Conditionally serving files from a directory outside of the document root with Apache2Serving multiple directories outside of web root from the same URL with Apache2ServerAlias without www not working on SSL virtualhostCannot remove Apache2 Ubuntu Default PageApache2 uses http instead of https, despite LetsEncryptApache2 Cannot make work simple mod_rewrite rulesegmentation fault with apache2 on ubuntuUbuntu 18.04 - Install packaged roundcube with nginx instead of apache2





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I have a server running Ubuntu 18.04 with .NET Core 2.1, Kestrel and Apache2. I am using LetsEncrypt for SSL. The domain was set up with SSL before hosting a static index.html site. After following this guide: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-apache?view=aspnetcore-2.2, I've been unable to get the domain to redirect to the Kestrel service that's been configured. I can access it just fine on the server.



Apache error.log:



[Sat Apr 20 02:08:12.950750 2019] [ssl:warn] [pid 7473] AH01909: ct.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Apr 20 02:08:13.001939 2019] [ssl:warn] [pid 7474] AH01909: ct.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Apr 20 02:08:13.007430 2019] [mpm_prefork:notice] [pid 7474] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Sat Apr 20 02:08:13.007467 2019] [core:notice] [pid 7474] AH00094: Command line: '/usr/sbin/apache2'
[Sat Apr 20 02:08:18.723565 2019] [autoindex:error] [pid 7483] [client 50.88.218.180:10635] AH01276: Cannot serve directory /var/www/ct.com/public_html/ps/publish/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive


virtual host config - ct.com.conf:



<VirtualHost *:*>
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName ct.com
ServerAlias www.ct.com

ProxyPreserveHost On
ProxyPass / http://127.0.0.1:5000/
ProxyPassReverse / http://127.0.0.1:5000/

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =ct.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>


LetsEncrypt config:



/etc/apache2/sites-available# cat ct.com-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName ct.com
ServerAlias www.ct.com
DocumentRoot /var/www/ct.com/public_html/ps/publish

<Directory /var/www/ct.com/public_html/ps/publish>
AllowOverride All
Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.

# RewriteCond %{SERVER_NAME} =ct.com
# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/www.ct.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.ct.com/privkey.pem
</VirtualHost>
</IfModule>


Recently removed Indexes from the Apache2.conf:



<Directory /var/www/>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>


Does anyone see anything wrong of why my server won't serve any requests to my currently running site over SSL? I have other websites that work fine over SSL.









share







New contributor




joshdeco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    I have a server running Ubuntu 18.04 with .NET Core 2.1, Kestrel and Apache2. I am using LetsEncrypt for SSL. The domain was set up with SSL before hosting a static index.html site. After following this guide: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-apache?view=aspnetcore-2.2, I've been unable to get the domain to redirect to the Kestrel service that's been configured. I can access it just fine on the server.



    Apache error.log:



    [Sat Apr 20 02:08:12.950750 2019] [ssl:warn] [pid 7473] AH01909: ct.com:443:0 server certificate does NOT include an ID which matches the server name
    [Sat Apr 20 02:08:13.001939 2019] [ssl:warn] [pid 7474] AH01909: ct.com:443:0 server certificate does NOT include an ID which matches the server name
    [Sat Apr 20 02:08:13.007430 2019] [mpm_prefork:notice] [pid 7474] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
    [Sat Apr 20 02:08:13.007467 2019] [core:notice] [pid 7474] AH00094: Command line: '/usr/sbin/apache2'
    [Sat Apr 20 02:08:18.723565 2019] [autoindex:error] [pid 7483] [client 50.88.218.180:10635] AH01276: Cannot serve directory /var/www/ct.com/public_html/ps/publish/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive


    virtual host config - ct.com.conf:



    <VirtualHost *:*>
    RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
    </VirtualHost>

    <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName ct.com
    ServerAlias www.ct.com

    ProxyPreserveHost On
    ProxyPass / http://127.0.0.1:5000/
    ProxyPassReverse / http://127.0.0.1:5000/

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    RewriteEngine on
    RewriteCond %{SERVER_NAME} =ct.com
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
    </VirtualHost>


    LetsEncrypt config:



    /etc/apache2/sites-available# cat ct.com-le-ssl.conf
    <IfModule mod_ssl.c>
    <VirtualHost *:443>
    ServerAdmin webmaster@localhost
    ServerName ct.com
    ServerAlias www.ct.com
    DocumentRoot /var/www/ct.com/public_html/ps/publish

    <Directory /var/www/ct.com/public_html/ps/publish>
    AllowOverride All
    Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    RewriteEngine on
    # Some rewrite rules in this file were disabled on your HTTPS site,
    # because they have the potential to create redirection loops.

    # RewriteCond %{SERVER_NAME} =ct.com
    # RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/www.ct.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/www.ct.com/privkey.pem
    </VirtualHost>
    </IfModule>


    Recently removed Indexes from the Apache2.conf:



    <Directory /var/www/>
    Options FollowSymLinks
    AllowOverride None
    Require all granted
    </Directory>


    Does anyone see anything wrong of why my server won't serve any requests to my currently running site over SSL? I have other websites that work fine over SSL.









    share







    New contributor




    joshdeco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I have a server running Ubuntu 18.04 with .NET Core 2.1, Kestrel and Apache2. I am using LetsEncrypt for SSL. The domain was set up with SSL before hosting a static index.html site. After following this guide: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-apache?view=aspnetcore-2.2, I've been unable to get the domain to redirect to the Kestrel service that's been configured. I can access it just fine on the server.



      Apache error.log:



      [Sat Apr 20 02:08:12.950750 2019] [ssl:warn] [pid 7473] AH01909: ct.com:443:0 server certificate does NOT include an ID which matches the server name
      [Sat Apr 20 02:08:13.001939 2019] [ssl:warn] [pid 7474] AH01909: ct.com:443:0 server certificate does NOT include an ID which matches the server name
      [Sat Apr 20 02:08:13.007430 2019] [mpm_prefork:notice] [pid 7474] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
      [Sat Apr 20 02:08:13.007467 2019] [core:notice] [pid 7474] AH00094: Command line: '/usr/sbin/apache2'
      [Sat Apr 20 02:08:18.723565 2019] [autoindex:error] [pid 7483] [client 50.88.218.180:10635] AH01276: Cannot serve directory /var/www/ct.com/public_html/ps/publish/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive


      virtual host config - ct.com.conf:



      <VirtualHost *:*>
      RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
      </VirtualHost>

      <VirtualHost *:80>
      ServerAdmin webmaster@localhost
      ServerName ct.com
      ServerAlias www.ct.com

      ProxyPreserveHost On
      ProxyPass / http://127.0.0.1:5000/
      ProxyPassReverse / http://127.0.0.1:5000/

      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
      RewriteEngine on
      RewriteCond %{SERVER_NAME} =ct.com
      RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
      </VirtualHost>


      LetsEncrypt config:



      /etc/apache2/sites-available# cat ct.com-le-ssl.conf
      <IfModule mod_ssl.c>
      <VirtualHost *:443>
      ServerAdmin webmaster@localhost
      ServerName ct.com
      ServerAlias www.ct.com
      DocumentRoot /var/www/ct.com/public_html/ps/publish

      <Directory /var/www/ct.com/public_html/ps/publish>
      AllowOverride All
      Require all granted
      </Directory>

      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
      RewriteEngine on
      # Some rewrite rules in this file were disabled on your HTTPS site,
      # because they have the potential to create redirection loops.

      # RewriteCond %{SERVER_NAME} =ct.com
      # RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

      Include /etc/letsencrypt/options-ssl-apache.conf
      SSLCertificateFile /etc/letsencrypt/live/www.ct.com/fullchain.pem
      SSLCertificateKeyFile /etc/letsencrypt/live/www.ct.com/privkey.pem
      </VirtualHost>
      </IfModule>


      Recently removed Indexes from the Apache2.conf:



      <Directory /var/www/>
      Options FollowSymLinks
      AllowOverride None
      Require all granted
      </Directory>


      Does anyone see anything wrong of why my server won't serve any requests to my currently running site over SSL? I have other websites that work fine over SSL.









      share







      New contributor




      joshdeco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have a server running Ubuntu 18.04 with .NET Core 2.1, Kestrel and Apache2. I am using LetsEncrypt for SSL. The domain was set up with SSL before hosting a static index.html site. After following this guide: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-apache?view=aspnetcore-2.2, I've been unable to get the domain to redirect to the Kestrel service that's been configured. I can access it just fine on the server.



      Apache error.log:



      [Sat Apr 20 02:08:12.950750 2019] [ssl:warn] [pid 7473] AH01909: ct.com:443:0 server certificate does NOT include an ID which matches the server name
      [Sat Apr 20 02:08:13.001939 2019] [ssl:warn] [pid 7474] AH01909: ct.com:443:0 server certificate does NOT include an ID which matches the server name
      [Sat Apr 20 02:08:13.007430 2019] [mpm_prefork:notice] [pid 7474] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
      [Sat Apr 20 02:08:13.007467 2019] [core:notice] [pid 7474] AH00094: Command line: '/usr/sbin/apache2'
      [Sat Apr 20 02:08:18.723565 2019] [autoindex:error] [pid 7483] [client 50.88.218.180:10635] AH01276: Cannot serve directory /var/www/ct.com/public_html/ps/publish/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive


      virtual host config - ct.com.conf:



      <VirtualHost *:*>
      RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
      </VirtualHost>

      <VirtualHost *:80>
      ServerAdmin webmaster@localhost
      ServerName ct.com
      ServerAlias www.ct.com

      ProxyPreserveHost On
      ProxyPass / http://127.0.0.1:5000/
      ProxyPassReverse / http://127.0.0.1:5000/

      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
      RewriteEngine on
      RewriteCond %{SERVER_NAME} =ct.com
      RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
      </VirtualHost>


      LetsEncrypt config:



      /etc/apache2/sites-available# cat ct.com-le-ssl.conf
      <IfModule mod_ssl.c>
      <VirtualHost *:443>
      ServerAdmin webmaster@localhost
      ServerName ct.com
      ServerAlias www.ct.com
      DocumentRoot /var/www/ct.com/public_html/ps/publish

      <Directory /var/www/ct.com/public_html/ps/publish>
      AllowOverride All
      Require all granted
      </Directory>

      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
      RewriteEngine on
      # Some rewrite rules in this file were disabled on your HTTPS site,
      # because they have the potential to create redirection loops.

      # RewriteCond %{SERVER_NAME} =ct.com
      # RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

      Include /etc/letsencrypt/options-ssl-apache.conf
      SSLCertificateFile /etc/letsencrypt/live/www.ct.com/fullchain.pem
      SSLCertificateKeyFile /etc/letsencrypt/live/www.ct.com/privkey.pem
      </VirtualHost>
      </IfModule>


      Recently removed Indexes from the Apache2.conf:



      <Directory /var/www/>
      Options FollowSymLinks
      AllowOverride None
      Require all granted
      </Directory>


      Does anyone see anything wrong of why my server won't serve any requests to my currently running site over SSL? I have other websites that work fine over SSL.







      apache-2.4 ubuntu-18.04





      share







      New contributor




      joshdeco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      joshdeco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      joshdeco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 6 mins ago









      joshdecojoshdeco

      1




      1




      New contributor




      joshdeco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      joshdeco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      joshdeco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          joshdeco is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963876%2fcannot-access-kestrel-from-outside-on-ubuntu-with-apache2%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          joshdeco is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          joshdeco is a new contributor. Be nice, and check out our Code of Conduct.













          joshdeco is a new contributor. Be nice, and check out our Code of Conduct.












          joshdeco is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963876%2fcannot-access-kestrel-from-outside-on-ubuntu-with-apache2%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Список ссавців Італії Природоохоронні статуси | Список |...

          Українські прізвища Зміст Історичні відомості |...