Created a server with 3 websites on it. Two websites work fine and one with numbers in the name like 1800flowers.com writes "The connection has timed out"
I did all the same for all 3
mkdir -p /var/www/test.com/public_html
chown -R $USER:$USER /var/www/test.com/public_html
chmod -R 755 /var/www
nano /var/www/test.com/public_html/index.html
created index.html
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/test.com.conf
nano /etc/apache2/sites-available/test.com.conf
then I put this info in the .conf file
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName test.com
ServerAlias www.test.com
DocumentRoot /var/www/test.com/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
then
a2ensite test.com.conf
service apache2 restart
then I have
"The connection has timed out"
Same error if I trying to connect via IP address
Does it matter if domain has numbers in the name?
I also tried to recreate a new .conf file - didn't help
Please help to solve the problem.
I did all the same for all 3
mkdir -p /var/www/test.com/public_html
chown -R $USER:$USER /var/www/test.com/public_html
chmod -R 755 /var/www
nano /var/www/test.com/public_html/index.html
created index.html
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/test.com.conf
nano /etc/apache2/sites-available/test.com.conf
then I put this info in the .conf file
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName test.com
ServerAlias www.test.com
DocumentRoot /var/www/test.com/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
then
a2ensite test.com.conf
service apache2 restart
then I have
"The connection has timed out"
Same error if I trying to connect via IP address
Does it matter if domain has numbers in the name?
I also tried to recreate a new .conf file - didn't help
Please help to solve the problem.