I'm new to setting up servers, working with Apache2, etc. While attempting to post html documents, I:
- dropped a html file in the 'www' directory.
- ran this command in the command prompt:
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
- visited the appropriate URL.
However, I am directed to a 404 not found page.
If you get 404 your port is open and web server is running but the html file was not found. Usually the correct dir is /var/www/html. Put file.html into /var/www/html and try accessing it http://server/file.html
The default file is named index.html. If you put file named index.html into the dir you should be able to access the server with http://server/
Since you see a 404 error, you are getting through on port 80.
You may be experiencing permissions problems. Make sure your html file and parent directory is readable by apache(making them world readable will suffice for now):
Are you specifying the full url to your html file like http://someserver/myfile.html, or do you just go to http://someserver/? If it is the latter, make sure your file is named index.html.