Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I just changed my dns about 24hrs ago to point to my host, [domain A removed] but now I get error 404 The requested URL / was not found on this server. What do I need to change on my server or add as there is also same files of [domain B removed] on the same server is that an issue. My host admin says I just wait for dns to propagate...
Otherwise I had a nice answer with my last question regarding the same so I changed the dns as was advised..

What I have tried:

Not yet anything tried rather than changing dns and waited 24 hours for changes.
Posted
Updated 21-Sep-16 0:02am
v2

You have to configure your Apache server to deliver content. Actually the URL can be resolved and there is an Apache server running. But there is no content (as reported by the 404 error code).

The Apache config file httpd.conf should have a DocumentRoot entry that points to the root directory of your web page files. That directory should contain the start page file (index.html by default). The 404 error tells you that the start page file could not be found (when connecting to web servers without specifying a file, it will try to access the configured default file names).

If you have a start page file with a different name, add that to your configuration.
Example:
DocumentRoot /var/www/html/
DirectoryIndex home.html start.html index.html
 
Share this answer
 
Use network tools like ping or nslookup to see if the domain has resolved for you yet (remember it will take longer for some people to see the changes than others). If the host is not pointing to the new domain yet then do as suggested and wait. If the dns has redirected and you're getting a 404 then your site isn't setup or configured correctly. As we have no idea how you have tried to set it up there isn't much we can do to help, you'll just need to check your files are in the right location etc.
 
Share this answer
 
Comments
Allyville 21-Sep-16 15:47pm    
Actually I just gave the person who owns the domain to change the A records and www and ftp under dns to the same as my other website with my host which is Sopsopmedia.com although he didn't change the nameservers so the name servers are different. Let know if this helps point the exactly problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900