Ubuntu Server 18.04 LTS (HVM) Multiple websites at one domain, one shows “This site can’t be reached”

veromi

New Member
Joined
Apr 2, 2020
Messages
2
Reaction score
0
Credits
0
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 figured out myself. I had to add http and https ports to AWS security group
 
I figured out myself. I had to add http and https ports to AWS security group

Hello @veromi, glad you solve your issue.
just one question for my knowledge. As far as I understand you are using amazon server , something that didn’t refer on OP.
Did you add http and https ports to AWS security group for the other two sites ?
 

Members online

No members online now.

Top