apache2 redirect doesn't workapache2 configuration for blog.example.com not workingRedirect non-www to www...

Reverse int within the 32-bit signed integer range: [−2^31, 2^31 − 1]

Can I sign legal documents with a smiley face?

What is this called? Old film camera viewer?

"Spoil" vs "Ruin"

Has any country ever had 2 former presidents in jail simultaneously?

What are the purposes of autoencoders?

Which one is correct as adjective “protruding” or “protruded”?

Start making guitar arrangements

How do you make your own symbol when Detexify fails?

Is it better practice to read straight from sheet music rather than memorize it?

Yosemite Fire Rings - What to Expect?

Pre-modern battle - command it, or fight in it?

How to implement a feedback to keep the DC gain at zero for this conceptual passive filter?

Creepy dinosaur pc game identification

How to follow the Halacha?

copy and scale one figure (wheel)

If infinitesimal transformations commute why dont the generators of the Lorentz group commute?

On a tidally locked planet, would time be quantized?

Loading commands from file

Did Swami Prabhupada reject Advaita?

Strong empirical falsification of quantum mechanics based on vacuum energy density

How could a planet have erratic days?

What does routing an IP address mean?

Is the U.S. Code copyrighted by the Government?



apache2 redirect doesn't work


apache2 configuration for blog.example.com not workingRedirect non-www to www over SSL with NginxApache two redirect conditions in one redirect ruleApache 2.4 http auth doesn't prompt credentialsApache2 unexpected redirect: Virtualhost DirectoryIndex not serving index.php automaticallyApache doesnt accept ssl on parts of the domainApache2 - SSL redirect doesn't work no matter what I put into the confighttp to https redirection - apache2Apache 2.4.6 Virtual Host ServerAlias directive not matching alias in all casesApache2 config to redirect wildcard secure domains













0















This is my configuration:



<VirtualHost *:80>
ServerName example.com
Redirect / https://example.com/
ServerAdmin info@example.com
ServerAlias www.example.com
</VirtualHost>


It should redirect user to https://example.com, but it doesn't work. I have this configuration for more than year, it worked, but now when I try to visit http://example.com, its display following error:



Not Found
The requested URL / was not found on this server.


When I type http://www.example.com, apache redirects request properly. Any other redirect to different virtual host works properly too. I'm using Apache/2.4.7 (Ubuntu 14.04).









share







New contributor




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

























    0















    This is my configuration:



    <VirtualHost *:80>
    ServerName example.com
    Redirect / https://example.com/
    ServerAdmin info@example.com
    ServerAlias www.example.com
    </VirtualHost>


    It should redirect user to https://example.com, but it doesn't work. I have this configuration for more than year, it worked, but now when I try to visit http://example.com, its display following error:



    Not Found
    The requested URL / was not found on this server.


    When I type http://www.example.com, apache redirects request properly. Any other redirect to different virtual host works properly too. I'm using Apache/2.4.7 (Ubuntu 14.04).









    share







    New contributor




    Alex 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








      This is my configuration:



      <VirtualHost *:80>
      ServerName example.com
      Redirect / https://example.com/
      ServerAdmin info@example.com
      ServerAlias www.example.com
      </VirtualHost>


      It should redirect user to https://example.com, but it doesn't work. I have this configuration for more than year, it worked, but now when I try to visit http://example.com, its display following error:



      Not Found
      The requested URL / was not found on this server.


      When I type http://www.example.com, apache redirects request properly. Any other redirect to different virtual host works properly too. I'm using Apache/2.4.7 (Ubuntu 14.04).









      share







      New contributor




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












      This is my configuration:



      <VirtualHost *:80>
      ServerName example.com
      Redirect / https://example.com/
      ServerAdmin info@example.com
      ServerAlias www.example.com
      </VirtualHost>


      It should redirect user to https://example.com, but it doesn't work. I have this configuration for more than year, it worked, but now when I try to visit http://example.com, its display following error:



      Not Found
      The requested URL / was not found on this server.


      When I type http://www.example.com, apache redirects request properly. Any other redirect to different virtual host works properly too. I'm using Apache/2.4.7 (Ubuntu 14.04).







      apache-2.4 virtualhost https apache2





      share







      New contributor




      Alex 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




      Alex 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




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









      asked 3 mins ago









      AlexAlex

      1




      1




      New contributor




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





      New contributor





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






      Alex 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
          });


          }
          });






          Alex 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%2f959666%2fapache2-redirect-doesnt-work%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








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










          draft saved

          draft discarded


















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













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












          Alex 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%2f959666%2fapache2-redirect-doesnt-work%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...

          117736 Шеррод Примітки | Див. також | Посилання | Навігаційне...

          Маріан Котлеба Зміст Життєпис | Політичні погляди |...