How can i dynamically add new virtual hosts for domains pointing to my server?Multiple domains with SSL on...

Proof of work - lottery approach

A particular customize with green line and letters for subfloat

Why not increase contact surface when reentering the atmosphere?

Type int? vs type int

Is a stroke of luck acceptable after a series of unfavorable events?

Why escape if the_content isnt?

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

Why are there no referendums in the US?

Where does the Z80 processor start executing from?

Sort a list by elements of another list

Anatomically Correct Strange Women In Ponds Distributing Swords

Large drywall patch supports

Pole-zeros of a real-valued causal FIR system

Gears on left are inverse to gears on right?

Integer addition + constant, is it a group?

Risk of infection at the gym?

Do the temporary hit points from the Battlerager barbarian's Reckless Abandon stack if I make multiple attacks on my turn?

Class Action - which options I have?

What Brexit proposals are on the table in the indicative votes on the 27th of March 2019?

Method to test if a number is a perfect power?

System.debug(JSON.Serialize(o)) Not longer shows full string

Is exact Kanji stroke length important?

Is `x >> pure y` equivalent to `liftM (const y) x`

Pre-amplifier input protection



How can i dynamically add new virtual hosts for domains pointing to my server?


Multiple domains with SSL on same IPDynamic Virtual Hosts In ApacheChoice of document root for virtual hostsMultiple domains on same virtual hosts in ApacheHow to configure multiple apache virtual hosts on multiple ports?how to configure a default (or common) virtualhost for non-ssl domains when ssl domains exist?Apache SSL virtual hosts sharing same DocumentRootOne IP Address and Wildcard Certificate for multiple Virtual Hosts (Windows, Apache 2.4.2, OpenSSL 1.0.2e)Apache ServerName not in any virtual host but still get's redirected to httpsHow to handle SSL certificates for a CNAME pointing to a different domain nameSSL_ERROR_RX_RECORD_TOO_LONG certbotApache Canonical Host with one SSL certificate for with www. and without













0















I'm building a web app (example: www.mywebapp.com) that allows users to point their domain - www.xyz.com - to www.mywebapp.com. When users go to www.xyz.com, their content will be served from www.mywebapp.com instead. Users will be told how to update their @ and www A records in their domain providers DNS settings to connect www.xyz.com to www.mywebapp.com.



I've read through all the following links, but am still pretty confused:




  • https://httpd.apache.org/docs/2.4/vhosts/name-based.html

  • Dynamic Virtual Hosts In Apache

  • Multiple domains with SSL on same IP

  • https://stackoverflow.com/questions/40753942/certbot-auto-letsencrypt-setting-up-one-key-for-multiple-domains-pointing-to-t

  • https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04


I'm new to server setups, SSL and tweaking apache, so where i'm getting very confused is:




  1. I manually created a new SSL certificate for a domain www.xyz2.com, which successfully pointed to www.mywebapp.com. However, this broke SSL support for all existing domains - *.mywebapp.com, mywebapp.com, www.xyz.com. Do I need to create virtual hosts for each domain pointing to www.mywebapp.com?


  2. Do I need to edit /etc/httpd/conf.d/ssl.conf to add the new virtual hosts? Can multiple domains use the same DocumentRoot path?


  3. If the user updates their A records in their domain hosting to point to www.mywebapp.com, and I create a new SSL certificate for their domain, what else do I need to do to serve content from https:\www.mywebapp.com to users visiting https:\www.xyz.com?



Any help is greatly appreciated. If more information is required, please let me know and I'll update the question.



My server setup is:




  • LAMP

  • AWS EC2


Big thanks for any help!









share







New contributor




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

























    0















    I'm building a web app (example: www.mywebapp.com) that allows users to point their domain - www.xyz.com - to www.mywebapp.com. When users go to www.xyz.com, their content will be served from www.mywebapp.com instead. Users will be told how to update their @ and www A records in their domain providers DNS settings to connect www.xyz.com to www.mywebapp.com.



    I've read through all the following links, but am still pretty confused:




    • https://httpd.apache.org/docs/2.4/vhosts/name-based.html

    • Dynamic Virtual Hosts In Apache

    • Multiple domains with SSL on same IP

    • https://stackoverflow.com/questions/40753942/certbot-auto-letsencrypt-setting-up-one-key-for-multiple-domains-pointing-to-t

    • https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04


    I'm new to server setups, SSL and tweaking apache, so where i'm getting very confused is:




    1. I manually created a new SSL certificate for a domain www.xyz2.com, which successfully pointed to www.mywebapp.com. However, this broke SSL support for all existing domains - *.mywebapp.com, mywebapp.com, www.xyz.com. Do I need to create virtual hosts for each domain pointing to www.mywebapp.com?


    2. Do I need to edit /etc/httpd/conf.d/ssl.conf to add the new virtual hosts? Can multiple domains use the same DocumentRoot path?


    3. If the user updates their A records in their domain hosting to point to www.mywebapp.com, and I create a new SSL certificate for their domain, what else do I need to do to serve content from https:\www.mywebapp.com to users visiting https:\www.xyz.com?



    Any help is greatly appreciated. If more information is required, please let me know and I'll update the question.



    My server setup is:




    • LAMP

    • AWS EC2


    Big thanks for any help!









    share







    New contributor




    Sagar Patil 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'm building a web app (example: www.mywebapp.com) that allows users to point their domain - www.xyz.com - to www.mywebapp.com. When users go to www.xyz.com, their content will be served from www.mywebapp.com instead. Users will be told how to update their @ and www A records in their domain providers DNS settings to connect www.xyz.com to www.mywebapp.com.



      I've read through all the following links, but am still pretty confused:




      • https://httpd.apache.org/docs/2.4/vhosts/name-based.html

      • Dynamic Virtual Hosts In Apache

      • Multiple domains with SSL on same IP

      • https://stackoverflow.com/questions/40753942/certbot-auto-letsencrypt-setting-up-one-key-for-multiple-domains-pointing-to-t

      • https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04


      I'm new to server setups, SSL and tweaking apache, so where i'm getting very confused is:




      1. I manually created a new SSL certificate for a domain www.xyz2.com, which successfully pointed to www.mywebapp.com. However, this broke SSL support for all existing domains - *.mywebapp.com, mywebapp.com, www.xyz.com. Do I need to create virtual hosts for each domain pointing to www.mywebapp.com?


      2. Do I need to edit /etc/httpd/conf.d/ssl.conf to add the new virtual hosts? Can multiple domains use the same DocumentRoot path?


      3. If the user updates their A records in their domain hosting to point to www.mywebapp.com, and I create a new SSL certificate for their domain, what else do I need to do to serve content from https:\www.mywebapp.com to users visiting https:\www.xyz.com?



      Any help is greatly appreciated. If more information is required, please let me know and I'll update the question.



      My server setup is:




      • LAMP

      • AWS EC2


      Big thanks for any help!









      share







      New contributor




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












      I'm building a web app (example: www.mywebapp.com) that allows users to point their domain - www.xyz.com - to www.mywebapp.com. When users go to www.xyz.com, their content will be served from www.mywebapp.com instead. Users will be told how to update their @ and www A records in their domain providers DNS settings to connect www.xyz.com to www.mywebapp.com.



      I've read through all the following links, but am still pretty confused:




      • https://httpd.apache.org/docs/2.4/vhosts/name-based.html

      • Dynamic Virtual Hosts In Apache

      • Multiple domains with SSL on same IP

      • https://stackoverflow.com/questions/40753942/certbot-auto-letsencrypt-setting-up-one-key-for-multiple-domains-pointing-to-t

      • https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04


      I'm new to server setups, SSL and tweaking apache, so where i'm getting very confused is:




      1. I manually created a new SSL certificate for a domain www.xyz2.com, which successfully pointed to www.mywebapp.com. However, this broke SSL support for all existing domains - *.mywebapp.com, mywebapp.com, www.xyz.com. Do I need to create virtual hosts for each domain pointing to www.mywebapp.com?


      2. Do I need to edit /etc/httpd/conf.d/ssl.conf to add the new virtual hosts? Can multiple domains use the same DocumentRoot path?


      3. If the user updates their A records in their domain hosting to point to www.mywebapp.com, and I create a new SSL certificate for their domain, what else do I need to do to serve content from https:\www.mywebapp.com to users visiting https:\www.xyz.com?



      Any help is greatly appreciated. If more information is required, please let me know and I'll update the question.



      My server setup is:




      • LAMP

      • AWS EC2


      Big thanks for any help!







      amazon-web-services amazon-ec2 apache-2.4 virtualhost





      share







      New contributor




      Sagar Patil 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




      Sagar Patil 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




      Sagar Patil 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









      Sagar PatilSagar Patil

      1011




      1011




      New contributor




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





      New contributor





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






      Sagar Patil 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
          });


          }
          });






          Sagar Patil 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%2f960352%2fhow-can-i-dynamically-add-new-virtual-hosts-for-domains-pointing-to-my-server%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








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










          draft saved

          draft discarded


















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













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












          Sagar Patil 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%2f960352%2fhow-can-i-dynamically-add-new-virtual-hosts-for-domains-pointing-to-my-server%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...

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

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