Set up domain on Apache server

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Hey I have got a VPS which I have installed Apache on so I can do some web development. Say I have a domain name. How would I link that to the Apache server.



I am running Ubuntu 16.0.4










share|improve this question



























    up vote
    0
    down vote

    favorite












    Hey I have got a VPS which I have installed Apache on so I can do some web development. Say I have a domain name. How would I link that to the Apache server.



    I am running Ubuntu 16.0.4










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Hey I have got a VPS which I have installed Apache on so I can do some web development. Say I have a domain name. How would I link that to the Apache server.



      I am running Ubuntu 16.0.4










      share|improve this question















      Hey I have got a VPS which I have installed Apache on so I can do some web development. Say I have a domain name. How would I link that to the Apache server.



      I am running Ubuntu 16.0.4







      16.04 apache2 dns vps






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 7 at 23:24









      thomasrutter

      25.4k46086




      25.4k46086










      asked Feb 7 at 23:10









      coolio85

      31




      31




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          in your DNS you make an A record that points to your VPS ip
          that's it.



          your website will be in /var/www/html
          add your website stuff



          open up VIM (or the editor of your choice)



          sudo vim /etc/apache2/sites-available/000-default.conf


          change your ServerAdmin to your email



          sudo service apache2 reload


          to restart apache and you are good to go






          share|improve this answer




















          • Is it just the ServerAdmin I need to change? Also is it the email I used for the domain registration?
            – coolio85
            Feb 8 at 12:42










          • ServerAdmin, not necessarily the one you used for the domain registration, anything better than having it as webmaster@localhost You may also want to add/change the ServerName www.yoursite.com
            – Oscar
            Feb 8 at 15:55










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004046%2fset-up-domain-on-apache-server%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote



          accepted










          in your DNS you make an A record that points to your VPS ip
          that's it.



          your website will be in /var/www/html
          add your website stuff



          open up VIM (or the editor of your choice)



          sudo vim /etc/apache2/sites-available/000-default.conf


          change your ServerAdmin to your email



          sudo service apache2 reload


          to restart apache and you are good to go






          share|improve this answer




















          • Is it just the ServerAdmin I need to change? Also is it the email I used for the domain registration?
            – coolio85
            Feb 8 at 12:42










          • ServerAdmin, not necessarily the one you used for the domain registration, anything better than having it as webmaster@localhost You may also want to add/change the ServerName www.yoursite.com
            – Oscar
            Feb 8 at 15:55














          up vote
          0
          down vote



          accepted










          in your DNS you make an A record that points to your VPS ip
          that's it.



          your website will be in /var/www/html
          add your website stuff



          open up VIM (or the editor of your choice)



          sudo vim /etc/apache2/sites-available/000-default.conf


          change your ServerAdmin to your email



          sudo service apache2 reload


          to restart apache and you are good to go






          share|improve this answer




















          • Is it just the ServerAdmin I need to change? Also is it the email I used for the domain registration?
            – coolio85
            Feb 8 at 12:42










          • ServerAdmin, not necessarily the one you used for the domain registration, anything better than having it as webmaster@localhost You may also want to add/change the ServerName www.yoursite.com
            – Oscar
            Feb 8 at 15:55












          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          in your DNS you make an A record that points to your VPS ip
          that's it.



          your website will be in /var/www/html
          add your website stuff



          open up VIM (or the editor of your choice)



          sudo vim /etc/apache2/sites-available/000-default.conf


          change your ServerAdmin to your email



          sudo service apache2 reload


          to restart apache and you are good to go






          share|improve this answer












          in your DNS you make an A record that points to your VPS ip
          that's it.



          your website will be in /var/www/html
          add your website stuff



          open up VIM (or the editor of your choice)



          sudo vim /etc/apache2/sites-available/000-default.conf


          change your ServerAdmin to your email



          sudo service apache2 reload


          to restart apache and you are good to go







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 8 at 2:55









          Oscar

          16




          16











          • Is it just the ServerAdmin I need to change? Also is it the email I used for the domain registration?
            – coolio85
            Feb 8 at 12:42










          • ServerAdmin, not necessarily the one you used for the domain registration, anything better than having it as webmaster@localhost You may also want to add/change the ServerName www.yoursite.com
            – Oscar
            Feb 8 at 15:55
















          • Is it just the ServerAdmin I need to change? Also is it the email I used for the domain registration?
            – coolio85
            Feb 8 at 12:42










          • ServerAdmin, not necessarily the one you used for the domain registration, anything better than having it as webmaster@localhost You may also want to add/change the ServerName www.yoursite.com
            – Oscar
            Feb 8 at 15:55















          Is it just the ServerAdmin I need to change? Also is it the email I used for the domain registration?
          – coolio85
          Feb 8 at 12:42




          Is it just the ServerAdmin I need to change? Also is it the email I used for the domain registration?
          – coolio85
          Feb 8 at 12:42












          ServerAdmin, not necessarily the one you used for the domain registration, anything better than having it as webmaster@localhost You may also want to add/change the ServerName www.yoursite.com
          – Oscar
          Feb 8 at 15:55




          ServerAdmin, not necessarily the one you used for the domain registration, anything better than having it as webmaster@localhost You may also want to add/change the ServerName www.yoursite.com
          – Oscar
          Feb 8 at 15:55

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004046%2fset-up-domain-on-apache-server%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do I move numbers in filenames, in a batch renaming operation?