S
S
sainttoxa st2015-11-24 10:15:44
Apache HTTP Server
sainttoxa st, 2015-11-24 10:15:44

Local site on Ubuntu?

Hello!
Please tell me what is the problem. Everything was installed according to the instructions. Apache works. The site is not displayed.
1) In the /etc/apache2/sites-available directory, I created a sudo gedit mysite file with the contents (removed <> in VirualHost otherwise the text was not shown in my question):


VirtualHost *:80
ServerName mysite
DocumentRoot /home/USERNAME/sites/www/mysite/
/VirtualHost

2) Further in sudo gedit /etc/hosts added to localhost added "mysite" separated by a space. It turned out "127.0.0.1 localhost mysite"
3) Activated the new host sudo a2ensite mysite
4) Restart Apache sudo /etc/init.d/apache2 restart
Created a page like "Hello world" in the site folder. The site is not displayed.
Help me please.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
svd71, 2015-11-24
@svd71

1. you need to check if the site profile has appeared at /etc/apache2/sites-enabled/@mysite
2. check the permissions on this file
3. pay attention to what Apache says when starting the service, check the logs at /var/logs/ apache2/* . Especially error messages.
4. Try to connect to 127.0.0.1 . Then localhost

S
sainttoxa st, 2015-11-27
@sainttoxa1

Thank you all guys, while I'm trying - nothing comes out)) I'll unsubscribe how I'll do it. If there are any instructions - simple and straight on points 1,2,3 - I will be grateful

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question