How do I restore an Apache configuration after a hard restart?

Posted by iPhoneARguy on Stack Overflow See other posts from Stack Overflow or by iPhoneARguy
Published on 2010-05-06T17:17:55Z Indexed on 2010/05/06 17:28 UTC
Read the original article Hit count: 154

Filed under:
|

I installed Apache on my Ubuntu server, and when it installed, it created a directory ~/Apache/ with directories such as htdocs, logs, cgi-bin, etc. I was then able to create several pages and scripts which I placed into the corresponding directories (~/Apache/htdocs, ~/Apache/cgi-bin), and I was able to serve these files on the web.

Unfortunately, my server had an unexpected hard restart, and since then, it seems like the files aren't being served. The server is still up, but when I navigate to the URL, I get a page that says "It works!" instead of what was expected.

Does anyone know how I can get Apache to serve from ~/Apache/htdocs again? I tried to RTFM and Google for an answer already but it wasn't very helpful.

© Stack Overflow or respective owner

Related posts about apache

Related posts about apache2