Comment to 'HTTP Error 404.0 - Not Found ,after installation, click any link will get this error'
  • Also to correctly process video and photo files, make sure you specify your domain in the host. Here’s how to add a host to your server in Linux:

    Steps to Add a Host in Linux

    1. Open the Terminal: Access your Linux terminal.
    2. Edit the Hosts File: Use a text editor to open the /etc/hosts file. You will need superuser (root) privileges to edit this file. You can use nanovim, or any text editor of your choice. Here’s an example using nano:
    sudo nano /etc/hosts
    
    1. Add Your Host: Once you have the file open, you can add a new line for your domain. The format is:
    <IP_address>    <hostname>
    
    1. For example, if you want to add a host for the domain www.example.com pointing to the IP address 192.168.1.100, you would add the following line:
    192.168.1.100    www.example.com
    
    1. Save the Changes: After you have added the necessary line, save the changes. If you are using nano, you can do this by pressing CTRL + X, then Y to confirm changes, and Enter to exit.
    2. Test the Configuration: To ensure that your new host is properly configured, you can use the ping command to check if it resolves correctly:
    ping www.example.com
    
    1. If everything is set up correctly, you should see responses from the specified IP address.

    Additional Steps

    • Restart Services: In some cases, you may need to restart certain services or your network for the changes to take effect, but typically changes to the /etc/hosts file take effect immediately.
    • DNS Configuration: If you are running a more complex setup or need external accessibility, consider configuring DNS records through your domain registrar or DNS provider instead.