Set up domain on Apache server

Clash 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
16.04 apache2 dns vps
add a comment |Â
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
16.04 apache2 dns vps
add a comment |Â
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
16.04 apache2 dns vps
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
16.04 apache2 dns vps
edited Feb 7 at 23:24
thomasrutter
25.4k46086
25.4k46086
asked Feb 7 at 23:10
coolio85
31
31
add a comment |Â
add a comment |Â
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
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
add a comment |Â
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
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
add a comment |Â
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
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
add a comment |Â
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
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
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password