Thanks Graham.After I sent the email yesterday when I attempted again to visit 
the www.dimsuum.dk <http://www.dimsuum.dk/> from the browser I could access the 
site all right. Also when I try to reach the site using curl -L -H 
Host:www.dimsum.dk <http://www.dimsum.uk/> http://139.162.163.35 
<http://139.162.163.35/> I can reach the site from the terminal as well. 

Thanks!

Jian

> Den 27. jul. 2021 kl. 02.07 skrev Graham Dumpleton 
> <[email protected]>:
> 
> Apache is generally set up to use name based virtual hosting. It is therefore 
> important that you access the site using the hostname the VirtualHost in 
> Apache is configured to use. If you don't then Apache will fallback to using 
> whatever is the first VirtualHost in the Apache configuration which often 
> would be the default pages for the Linux distribution.
> 
> Rather than a web browser (in case it is doing DNS/IP caching), you would be 
> better to test with:
> 
>     curl -L -H Host:www.dimsum.uk <http://www.dimsum.uk/> 
> https://139.162.163.35 <https://139.162.163.35/>
> 
> or "http" if not a secure site.
> 
> Graham
> 
>> On 27 Jul 2021, at 3:57 am, Jian Wu <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Dear all,
>> 
>> I am very inexperienced with website hosting and I hope that you can help me 
>> out with this issue. I have my website hosted running Ubuntu 20.04 LTS. The 
>> backend of my website is running on Django together with modwsgi. 
>> 
>> Today it is first time that I decided to do a large update on my website. I 
>> therefore changed the DNS to another server hosting a static page telling 
>> the visitors that my main website was under update.
>> 
>> Thereafter I changed my the my hosts file on in my MAC computer where I 
>> added these two lines at the bottom of my /etc/hosts file
>> 
>> 139.162.163.35 dimsum.dk <http://dimsum.dk/>
>> 139.162.163.35 www.dimsum.dk <http://www.dimsum.dk/>
>> 
>> Here 139.162.163.35 is the server IP address to the server hosting my 
>> website for which I need to update. I haven’t yet updated the website, but 
>> at this point I wanted to make sure that I can still access the old website. 
>> When I from the browser typed www.dimsum.dk <http://www.dimsum.dk/> I was 
>> lead to a Apache2 Ubuntu Default Page and it says It works!
>> 
>> I don’t know how to access my actual website. Also I am not sure what it 
>> meant by “you should replace this file located at /var/www/html/index.html” 
>> before continuing to operate your HTTP server”.
>> 
>> Thanks!
>> 
>> Best regards,
>> Jian
>> 
>> <Skærmbillede 2021-07-26 kl. 19.53.50.png>
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "modwsgi" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <mailto:[email protected]>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/modwsgi/B003C24D-A148-4964-9F17-1A1394C56B43%40gmail.com
>>  
>> <https://groups.google.com/d/msgid/modwsgi/B003C24D-A148-4964-9F17-1A1394C56B43%40gmail.com?utm_medium=email&utm_source=footer>.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/BBDFE0AF-32B2-42A3-8EC4-AB41D770620A%40gmail.com
>  
> <https://groups.google.com/d/msgid/modwsgi/BBDFE0AF-32B2-42A3-8EC4-AB41D770620A%40gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/FBBCF311-8CB5-48DB-BC79-8D90816A9FE8%40gmail.com.

Reply via email to