"Hmm. We’re having trouble finding that site."

chlyde

New Member
Joined
Dec 21, 2021
Messages
7
Reaction score
1
Credits
99
hi, linux v.Ubuntu Desktop 22.04 (i think)
Apache2 server is having trouble finding my files. These are the three directories im working with :
/etc/apache2/sites-available;
/var/www/html; &
/var/www/chlyde.
This is what i did :
sudo cp ../sites-available/000-default.conf chlyde.conf (did that ok) and
added ServerName www.chlyde.com in chlyde.conf file;
Altered DocumentRoot /var/www/chlyde/ to chlyde.conf file;
in ../sites-available dir, I sudo a2ensite chlyde.conf; &
(and it created the files ok);&
went to ../apache2/sites-enabled and saw chlyde.conf was created there for me.
...
went to ../var/www/chlyde , created a simple index.html and tried to go there in browser www.chlyde.com and 192.168...(local)
the www.chlyde.com said:
Hmm. We’re having trouble finding that site.
the local 192.168... (local) said:
the "You Made It test" that came with the Apache2 install
I don't have a NameServer yet if I need one, I don't know.

Can anyone tell me what I'm missing? thanks
 
Last edited:


Looks like you just need to set up dns for www.chlyde.com to point to your local machine. You could add the following to your /etc/hosts file:
192.168.0.10 www.chlyde.com chlyde.com
(replace the ip w/ the correct one) then reload your browser.
 
PM sent to @chlyde. Click on the mail icon next to your username in the upper right corner of the webpage.
 

Staff online

Members online


Top