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: Apache minimal configuration
Author
alex.barylski



Joined: 30 Sep 2011
Posts: 3

PostPosted: Wed 11 Dec '13 23:03    Post subject: Apache minimal configuration Reply with quote

I am trying to get a Apache (Win7x64) to run using totally custom config files, so far I have this:

Code:
httpd.exe -f ..\..\..\conf\apache\httpd.conf


Loads fine and here is my trivial config:

Code:
Listen 8082

ServerRoot web\bin\apache\apache-2.4
ServerName fitrak.me

DocumentRoot \web\home\websites


Regardless of whether I make the DocumentRoot absolute or relative Apache still won't load index.html

500 Internal Server Error

Nothing coming up erroneous in the logs...WTF am I missing???

The port is not occupied...
Back to top
James Blond
Moderator


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

PostPosted: Thu 12 Dec '13 12:19    Post subject: Reply with quote

You may use

httpd -S

to check the syntax and see which minimal version works.
Back to top
Anaksunaman



Joined: 19 Dec 2013
Posts: 54

PostPosted: Sat 21 Dec '13 13:00    Post subject: Apache minimal configuration Reply with quote

Two things I would try:

* Explicitly state the root directory e.g.
Code:
ServerRoot "c:/My Programs/Apache24/"
. Ditto for the document root. Use the quotes.

* You made need to enable mod_dir if it isn't already.
Code:
LoadModule dir_module modules/mod_dir.so

<IfModule dir_module>
   DirectoryIndex index.html
</IfModule>
Back to top


Reply to topic   Topic: Apache minimal configuration View previous topic :: View next topic
Post new topic   Forum Index -> Apache