logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Frustrating 404 error
Author
shieldfire



Joined: 30 Apr 2018
Posts: 2
Location: Sweden

PostPosted: Mon 30 Apr '18 13:26    Post subject: Frustrating 404 error Reply with quote

Going to my domain I keep getting
Quote:
Not Found

The requested URL / was not found on this server.


Looking at my apache setup, I've got a config pointing to the correct address /var/www/html/DOMAIN and the site is enabled. I've check, re-checked and tripple-checked the path in the configuration and all seems to be correctly setup there. Checking the actual path /var/www/html/ actually do contain the DOMAIN directory and contains data. The permissions and owner is the same as on other site on the server (these actually do work).

Finally I checked the access log but the only thing it is saying is

Quote:
NN.NN.NNN.NNN - - [30/Apr/2018:11:10:07 +0000] "GET / HTTP/1.1" 404 501 "-" "Mozilla/5.0 (Windows $
9


Is there a way of improving the log output? What am I missing here?
Back to top
shieldfire



Joined: 30 Apr 2018
Posts: 2
Location: Sweden

PostPosted: Mon 30 Apr '18 13:37    Post subject: Reply with quote

Update: I copied a working domain configuration to the non-working and only changed ServerName to the problem domain. I still get the 404 rather than getting to the "working site". Is this behavious cached somewhere mayhaps?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 07 May '18 10:33    Post subject: Reply with quote

please post / Paste relevant parts of your config.
Use a pastbin like http://apaste.info/ or http://hastebin.com/

if you use /usr/sbin/httpd -S you can see the vhost names. Depending on your distro it might be that the name isn't httpd, but apache or apache2

The 404 could also be caused of url rewriting.
Back to top


Reply to topic   Topic: Frustrating 404 error View previous topic :: View next topic
Post new topic   Forum Index -> Apache