Results 1 to 2 of 2

Thread: Multiple websites at one domain, one of them “This site can’t be reached”

  1. #1
    Join Date
    Apr 2020
    Beans
    2

    Multiple websites at one domain, one of them “This site can’t be reached”

    Ubuntu Server 18.04 LTS (HVM)
    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
    HTML Code:
    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

    HTML Code:
    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
    HTML Code:
    <VirtualHost *:80>
        ServerAdmin admin@test.com
        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

    HTML Code:
    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.

  2. #2
    Join Date
    Apr 2020
    Beans
    2

    Re: Multiple websites at one domain, one of them “This site can’t be reached”

    I figured out myself. I had to add http and https ports to AWS security group

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •