1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Apache displays localhost but not the domain

Discussion in 'Apache' started by torhanfract, Nov 29, 2019.

  1. #1
    Hello there!!

    I just followed this tuto https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04
    but when it comes to test, at the end of the topic, the http:// localhost displays well my site (actually just the validation of a server block working) whereas http:// mydomain (here http:// legroove) send a 404 error.
    I have probably messed up one of the commands? But I think no.

    Thank you in advance for all the help you could give me!
    Jonathan
     
    torhanfract, Nov 29, 2019 IP
  2. torhanfract

    torhanfract Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    Ok, I found it: missed to link 127.0.0.1 to my local domain with sudo nano /etc/apache2/sites-available/mydomain.conf
    Solved!
    Thanks
     
    torhanfract, Nov 29, 2019 IP
  3. tuxandrew

    tuxandrew Active Member

    Messages:
    63
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    68
    #3
    Glad to hear you solved it :)
     
    tuxandrew, Dec 22, 2019 IP